Class SelectableScopeResolver
- java.lang.Object
-
- org.glassfish.jersey.message.filtering.SelectableScopeResolver
-
- All Implemented Interfaces:
ScopeResolver
@Singleton public class SelectableScopeResolver extends java.lang.Object implements ScopeResolver
-
-
Field Summary
Fields Modifier and Type Field Description private javax.ws.rs.core.Configurationconfigurationstatic java.lang.StringDEFAULT_SCOPEScope used for selecting all fields, i.e.: when no filter is appliedstatic java.lang.StringPREFIXPrefix for all selectable scopesprivate static java.lang.StringSELECTABLE_PARAM_NAMEQuery parameter name for selectable feature, set to default valueprivate javax.ws.rs.core.UriInfouriInfo
-
Constructor Summary
Constructors Constructor Description SelectableScopeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Set<java.lang.String>getScopesForField(java.lang.String fieldName)private voidinit()java.util.Set<java.lang.String>resolve(java.lang.annotation.Annotation[] annotations)Resolve entity-filtering scopes for given annotations.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
Prefix for all selectable scopes
-
DEFAULT_SCOPE
public static final java.lang.String DEFAULT_SCOPE
Scope used for selecting all fields, i.e.: when no filter is applied
-
SELECTABLE_PARAM_NAME
private static java.lang.String 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
-
-
Method Detail
-
init
@PostConstruct private void init()
-
resolve
public java.util.Set<java.lang.String> resolve(java.lang.annotation.Annotation[] annotations)
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
private java.util.Set<java.lang.String> getScopesForField(java.lang.String fieldName)
-
-