Class SelectableScopeResolver
java.lang.Object
org.glassfish.jersey.message.filtering.SelectableScopeResolver
- All Implemented Interfaces:
ScopeResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javax.ws.rs.core.Configuration
static final String
Scope used for selecting all fields, i.e.: when no filter is appliedstatic final String
Prefix for all selectable scopesprivate static String
Query 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 void
init()
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:ScopeResolver
Resolve entity-filtering scopes for given annotations.- Specified by:
resolve
in interfaceScopeResolver
- Parameters:
annotations
- list of arbitrary annotations.- Returns:
- non-null set of entity-filtering scopes.
-
getScopesForField
-