Class EntityFilteringHelper
- java.lang.Object
-
- org.glassfish.jersey.message.filtering.EntityFilteringHelper
-
final class EntityFilteringHelper extends java.lang.ObjectUtility methods for Entity Data Filtering.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEntityFilteringHelper()Prevent instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.annotation.Annotation[] annotations, java.lang.Class<T> clazz)static java.lang.annotation.Annotation[]getFilteringAnnotations(java.lang.annotation.Annotation[] annotations)Filter given annotations and return only entity-filtering ones.static java.util.Set<java.lang.String>getFilteringScopes(java.lang.annotation.Annotation[] annotations)Get entity-filtering scopes from given annotations.static java.util.Set<java.lang.String>getFilteringScopes(java.lang.annotation.Annotation[] annotations, boolean filter)Get entity-filtering scopes from given annotations.
-
-
-
Method Detail
-
getFilteringScopes
public static java.util.Set<java.lang.String> getFilteringScopes(java.lang.annotation.Annotation[] annotations)
Get entity-filtering scopes from given annotations. Scopes are only derived from entity-filtering annotations.- Parameters:
annotations- list of arbitrary annotations.- Returns:
- a set of entity-filtering scopes.
-
getFilteringScopes
public static java.util.Set<java.lang.String> getFilteringScopes(java.lang.annotation.Annotation[] annotations, boolean filter)Get entity-filtering scopes from given annotations. Scopes are only derived from entity-filtering annotations.- Parameters:
annotations- list of arbitrary annotations.filter-truewhether the given annotation should be reduced to only entity-filtering annotations,falseotherwise.- Returns:
- a set of entity-filtering scopes.
-
getFilteringAnnotations
public static java.lang.annotation.Annotation[] getFilteringAnnotations(java.lang.annotation.Annotation[] annotations)
Filter given annotations and return only entity-filtering ones.- Parameters:
annotations- list of arbitrary annotations.- Returns:
- entity-filtering annotations or an empty array.
-
getAnnotation
public static <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.annotation.Annotation[] annotations, java.lang.Class<T> clazz)
-
-