Class SelectableScopeResolver
java.lang.Object
org.glassfish.jersey.message.filtering.SelectableScopeResolver
- All Implemented Interfaces:
ScopeResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javax.ws.rs.core.Configurationstatic final StringScope used for selecting all fields, i.e.: when no filter is appliedstatic final StringPrefix for all selectable scopesprivate static StringQuery parameter name for selectable feature, set to default valueprivate javax.ws.rs.core.UriInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScopesForField(String fieldName) private voidinit()resolve(Annotation[] annotations) Resolve entity-filtering scopes for given annotations.
-
Field Details
-
PREFIX
Prefix for all selectable scopes -
DEFAULT_SCOPE
Scope used for selecting all fields, i.e.: when no filter is applied -
SELECTABLE_PARAM_NAME
Query parameter name for selectable feature, set to default value -
configuration
@Context private javax.ws.rs.core.Configuration configuration -
uriInfo
@Context private javax.ws.rs.core.UriInfo uriInfo
-
-
Constructor Details
-
SelectableScopeResolver
public SelectableScopeResolver()
-
-
Method Details
-
init
-
resolve
Description copied from interface:ScopeResolverResolve entity-filtering scopes for given annotations.- Specified by:
resolvein interfaceScopeResolver- Parameters:
annotations- list of arbitrary annotations.- Returns:
- non-null set of entity-filtering scopes.
-
getScopesForField
-