• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java EndpointConfigBase类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.fasterxml.jackson.jaxrs.cfg.EndpointConfigBase的典型用法代码示例。如果您正苦于以下问题:Java EndpointConfigBase类的具体用法?Java EndpointConfigBase怎么用?Java EndpointConfigBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

EndpointConfigBase类属于com.fasterxml.jackson.jaxrs.cfg包,在下文中一共展示了EndpointConfigBase类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: modify

点赞 2

import com.fasterxml.jackson.jaxrs.cfg.EndpointConfigBase; //导入依赖的package包/类
@Override
public ObjectWriter modify(EndpointConfigBase<?> endpointConfigBase, MultivaluedMap<String, Object> multivaluedMap,
                           Object o, ObjectWriter objectWriter, JsonGenerator jsonGenerator) throws IOException {

    jsonGenerator.useDefaultPrettyPrinter();
    return objectWriter;
}
 

开发者ID:stevespringett,
项目名称:Alpine,
代码行数:8,
代码来源:PrettyPrintFilter.java

示例2: modify

点赞 2

import com.fasterxml.jackson.jaxrs.cfg.EndpointConfigBase; //导入依赖的package包/类
@Override
public ObjectWriter modify(EndpointConfigBase<?> endpoint, MultivaluedMap<String, Object> responseHeaders,
    Object valueToWrite, ObjectWriter w, JsonGenerator g) throws IOException {
  ObjectWriter writer = w;
  if (previous != null) {
    writer = previous.modify(endpoint, responseHeaders, valueToWrite, w, g);
  }
  g.useDefaultPrettyPrinter();
  return writer;
}
 

开发者ID:dremio,
项目名称:dremio-oss,
代码行数:11,
代码来源:JSONPrettyPrintFilter.java

示例3: modify

点赞 2

import com.fasterxml.jackson.jaxrs.cfg.EndpointConfigBase; //导入依赖的package包/类
@Override
public ObjectWriter modify(EndpointConfigBase<?> endpoint, MultivaluedMap<String, Object> responseHeaders, Object valueToWrite,
		ObjectWriter w, JsonGenerator g) throws IOException {
	SimpleBeanPropertyFilter filter = null;
	if (includes != null && !includes.isEmpty()) {
		filter = new SimpleBeanPropertyFilter.FilterExceptFilter(includes);
	} else if (excludes != null && !excludes.isEmpty()) {
		filter = SimpleBeanPropertyFilter.serializeAllExcept(excludes);
	} else {
		filter = SimpleBeanPropertyFilter.serializeAllExcept(new HashSet<String>());
	}
	FilterProvider provider = new SimpleFilterProvider().addFilter("property_filter", filter);
	return w.with(provider);
}
 

开发者ID:minnal,
项目名称:minnal,
代码行数:15,
代码来源:ResponseTransformationFilter.java

示例4: modify

点赞 2

import com.fasterxml.jackson.jaxrs.cfg.EndpointConfigBase; //导入依赖的package包/类
@Override
public ObjectWriter modify(EndpointConfigBase<?> endpoint, MultivaluedMap<String, Object> responseHeaders,
                Object valueToWrite, ObjectWriter ow, JsonGenerator jg) throws IOException {
    jg.useDefaultPrettyPrinter();
    return ow;
}
 

开发者ID:DorsetProject,
项目名称:dorset-framework,
代码行数:7,
代码来源:PrettyPrinter.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)