/** * Factory method that was accidentally added in 2.5 with arguments; basically * works just as an alias of {@link #filterOutAllExcept(Set)} which is not * very useful. Instead, see {@link #serializeAll()} for intended signature. * * @deprecated Since 2.6; to be removed from 2.7 */ @Deprecated public static SimpleBeanPropertyFilter serializeAll(Set<String> properties) { return new FilterExceptFilter(properties); }
new SimpleBeanPropertyFilter.FilterExceptFilter(columnNames); FilterProvider filterProvider = new SimpleFilterProvider().addFilter( CSV_FILTER_NAME, csvReponseFilter );
@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); } }
/** * Factory method to construct filter that filters out all properties <b>except</b> * ones includes in set */ public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> properties) { return new FilterExceptFilter(properties); }
/** * Factory method that was accidentally added in 2.5 with arguments; basically * works just as an alias of {@link #filterOutAllExcept(Set)} which is not * very useful. Instead, see {@link #serializeAll()} for intended signature. * * @deprecated Since 2.6; to be removed from 2.7 */ @Deprecated public static SimpleBeanPropertyFilter serializeAll(Set<String> properties) { return new FilterExceptFilter(properties); }
public static SimpleBeanPropertyFilter filterOutAllExcept(String... propertyArray) { HashSet<String> properties = new HashSet<String>(propertyArray.length); Collections.addAll(properties, propertyArray); return new FilterExceptFilter(properties); }
public static SimpleBeanPropertyFilter filterOutAllExcept(String... propertyArray) { HashSet<String> properties = new HashSet<String>(propertyArray.length); Collections.addAll(properties, propertyArray); return new FilterExceptFilter(properties); }
/** * Factory method to construct filter that filters out all properties <b>except</b> * ones includes in set */ public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> properties) { return new FilterExceptFilter(properties); }
public static SimpleBeanPropertyFilter filterOutAllExcept(String... propertyArray) { HashSet<String> properties = new HashSet<String>(propertyArray.length); Collections.addAll(properties, propertyArray); return new FilterExceptFilter(properties); }
public static SimpleBeanPropertyFilter filterOutAllExcept(String... propertyArray) { HashSet<String> properties = new HashSet<String>(propertyArray.length); Collections.addAll(properties, propertyArray); return new FilterExceptFilter(properties); }
/** * Convenience factory method that will return a "no-op" filter that will * simply just serialize all properties that are given, and filter out * nothing. * * @since 2.5 */ public static SimpleBeanPropertyFilter serializeAll(Set<String> properties) { return new FilterExceptFilter(properties); }
public static SimpleBeanPropertyFilter filterOutAllExcept(String... propertyArray) { HashSet<String> properties = new HashSet<String>(propertyArray.length); Collections.addAll(properties, propertyArray); return new FilterExceptFilter(properties); }
/** * Factory method to construct filter that filters out all properties <b>except</b> * ones includes in set */ public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> properties) { return new FilterExceptFilter(properties); }
/** * Factory method to construct filter that filters out all properties <b>except</b> * ones includes in set */ public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> properties) { return new FilterExceptFilter(properties); }
/** * Factory method to construct filter that filters out all properties <b>except</b> * ones includes in set */ public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> properties) { return new FilterExceptFilter(properties); }
/** * Factory method to construct filter that filters out all properties <b>except</b> * ones includes in set */ public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> properties) { return new FilterExceptFilter(properties); }
public static SimpleBeanPropertyFilter filterOutAllExcept(String... propertyArray) { HashSet<String> properties = new HashSet<String>(propertyArray.length); Collections.addAll(properties, propertyArray); return new FilterExceptFilter(properties); }
/** * Convenience factory method that will return a "no-op" filter that will * simply just serialize all properties that are given, and filter out * nothing. * * @since 2.5 */ public static SimpleBeanPropertyFilter serializeAll(Set<String> properties) { return new FilterExceptFilter(properties); }
/** * Factory method that was accidentally added in 2.5 with arguments; basically * works just as an alias of {@link #filterOutAllExcept(Set)} which is not * very useful. Instead, see {@link #serializeAll()} for intended signature. * * @deprecated Since 2.6; to be removed from 2.7 */ @Deprecated public static SimpleBeanPropertyFilter serializeAll(Set<String> properties) { return new FilterExceptFilter(properties); }
/** * Factory method to construct filter that filters out all properties <b>except</b> * ones includes in set */ public static SimpleBeanPropertyFilter filterOutAllExcept(Set<String> properties) { return new FilterExceptFilter(properties); }