Package | Description |
---|---|
org.glassfish.jersey.message.filtering |
Support for Entity Data Filtering in Jersey.
|
org.glassfish.jersey.message.filtering.spi |
SPI for Entity Data Filtering in Jersey.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
EmptyEntityGraphImpl
EntityGraph implementation that does not contain any fields/subgraphs. |
(package private) class |
EntityGraphImpl
Default implementation of
EntityGraph . |
Modifier and Type | Field and Description |
---|---|
private EntityGraph |
EntityProcessorContextImpl.graph |
private EntityGraph |
ObjectGraphImpl.graph |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<?>,EntityGraph> |
ObjectGraphImpl.classToGraph |
private java.util.concurrent.ConcurrentMap<java.lang.Class<?>,EntityGraph> |
EntityGraphProviderImpl.readerClassToGraph |
private java.util.concurrent.ConcurrentMap<java.lang.Class<?>,EntityGraph> |
EntityGraphProviderImpl.writerClassToGraph |
Modifier and Type | Method and Description |
---|---|
EntityGraph |
EmptyEntityGraphImpl.addField(java.lang.String fieldName) |
EntityGraph |
EmptyEntityGraphImpl.addField(java.lang.String fieldName,
java.util.Set<java.lang.String> filteringScopes) |
EntityGraph |
EmptyEntityGraphImpl.addField(java.lang.String fieldName,
java.lang.String... filteringScopes) |
EntityGraph |
EmptyEntityGraphImpl.addFilteringScopes(java.util.Set<java.lang.String> filteringScopes) |
EntityGraph |
EmptyEntityGraphImpl.addSubgraph(java.lang.String fieldName,
java.lang.Class<?> fieldClass) |
EntityGraph |
EmptyEntityGraphImpl.addSubgraph(java.lang.String fieldName,
java.lang.Class<?> fieldClass,
java.util.Set<java.lang.String> filteringScopes) |
EntityGraph |
EmptyEntityGraphImpl.addSubgraph(java.lang.String fieldName,
java.lang.Class<?> fieldClass,
java.lang.String... filteringScopes) |
EntityGraph |
EntityProcessorContextImpl.getEntityGraph() |
EntityGraph |
EntityGraphProviderImpl.getOrCreateEmptyEntityGraph(java.lang.Class<?> entityClass,
boolean forWriter) |
EntityGraph |
EntityGraphProviderImpl.getOrCreateEntityGraph(java.lang.Class<?> entityClass,
boolean forWriter) |
EntityGraph |
EmptyEntityGraphImpl.remove(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Class<?>,EntityGraph> |
EntityGraphProviderImpl.asMap(boolean forWriter)
Return an unmodifiable map of entity graphs for reader/writer.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
EntityInspectorImpl.inspectEntityClass(java.lang.Class<?> entityClass,
EntityGraph graph,
boolean forWriter)
Invoke available
EntityProcessor s on given entity class. |
private java.util.Map<java.lang.String,java.lang.reflect.Method> |
EntityInspectorImpl.inspectEntityProperties(java.lang.Class<?> entityClass,
EntityGraph graph,
java.util.Set<java.lang.Class<?>> inspect,
boolean forWriter)
Invoke available
EntityProcessor s on fields of given entity class. |
private void |
EntityInspectorImpl.inspectStandaloneAccessors(java.util.Map<java.lang.String,java.lang.reflect.Method> unprocessedAccessors,
EntityGraph graph,
boolean forWriter)
Invoke available
EntityProcessor s on accessors (getter/setter) that has no match in classes' fields. |
private void |
DefaultEntityProcessor.process(EntityGraph graph,
java.lang.String fieldName,
java.lang.reflect.Type fieldType) |
protected EntityProcessor.Result |
SecurityEntityProcessor.process(java.lang.String fieldName,
java.lang.Class<?> fieldClass,
java.lang.annotation.Annotation[] fieldAnnotations,
java.lang.annotation.Annotation[] annotations,
EntityGraph graph) |
protected EntityProcessor.Result |
EntityFilteringProcessor.process(java.lang.String field,
java.lang.Class<?> fieldClass,
java.lang.annotation.Annotation[] fieldAnnotations,
java.lang.annotation.Annotation[] annotations,
EntityGraph graph) |
protected EntityProcessor.Result |
SelectableEntityProcessor.process(java.lang.String fieldName,
java.lang.Class<?> fieldClass,
java.lang.annotation.Annotation[] fieldAnnotations,
java.lang.annotation.Annotation[] annotations,
EntityGraph graph) |
Constructor and Description |
---|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.Class<?> clazz,
EntityGraph graph)
Create entity processor context for processing entity classes.
|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.Class<?> clazz,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
EntityGraph graph)
Create entity processor context for processing entity accessors.
|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
EntityGraph graph)
Create entity processor context for processing entity properties.
|
EntityProcessorContextImpl(EntityProcessorContext.Type type,
java.lang.reflect.Method method,
EntityGraph graph)
Create entity processor context for processing entity accessors.
|
ObjectGraphImpl(java.util.Map<java.lang.Class<?>,EntityGraph> classToGraph,
EntityGraph graph,
java.util.Set<java.lang.String> filteringScopes) |
Constructor and Description |
---|
ObjectGraphImpl(java.util.Map<java.lang.Class<?>,EntityGraph> classToGraph,
EntityGraph graph,
java.util.Set<java.lang.String> filteringScopes) |
Modifier and Type | Method and Description |
---|---|
EntityGraph |
EntityGraph.addField(java.lang.String fieldName)
Add a field into this graph for all existing entity-filtering scopes.
|
EntityGraph |
EntityGraph.addField(java.lang.String fieldName,
java.util.Set<java.lang.String> filteringScopes)
Add a field into this graph for given set of entity-filtering scopes.
|
EntityGraph |
EntityGraph.addField(java.lang.String fieldName,
java.lang.String... filteringScopes)
Add a field into this graph for given list of entity-filtering scopes.
|
EntityGraph |
EntityGraph.addFilteringScopes(java.util.Set<java.lang.String> filteringScopes)
Add a set of entity-filtering scopes to this graph.
|
EntityGraph |
EntityGraph.addSubgraph(java.lang.String fieldName,
java.lang.Class<?> fieldClass)
Add a subgraph into this graph for all existing entity-filtering scopes.
|
EntityGraph |
EntityGraph.addSubgraph(java.lang.String fieldName,
java.lang.Class<?> fieldClass,
java.util.Set<java.lang.String> filteringScopes)
Add a subgraph into this graph for given set of entity-filtering scopes.
|
EntityGraph |
EntityGraph.addSubgraph(java.lang.String fieldName,
java.lang.Class<?> fieldClass,
java.lang.String... filteringScopes)
Add a subgraph into this graph for given list of entity-filtering scopes.
|
EntityGraph |
EntityProcessorContext.getEntityGraph()
Get entity graph to be modified by the processing.
|
EntityGraph |
EntityGraphProvider.getOrCreateEmptyEntityGraph(java.lang.Class<?> entityClass,
boolean forWriter)
Get an empty entity graph for given class.
|
EntityGraph |
EntityGraphProvider.getOrCreateEntityGraph(java.lang.Class<?> entityClass,
boolean forWriter)
Get an entity graph for given class.
|
EntityGraph |
EntityGraph.remove(java.lang.String name)
Remove a field/subgraph from the graph (all entity-filtering scopes).
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractEntityProcessor.addFilteringScopes(java.lang.String field,
java.lang.Class<?> fieldClass,
java.util.Set<java.lang.String> filteringScopes,
EntityGraph graph)
Add entity-filtering scopes of a field to an entity-graph.
|
protected void |
AbstractEntityProcessor.addGlobalScopes(java.util.Set<java.lang.String> filteringScopes,
EntityGraph graph)
Add entity-filtering scopes into given graph.
|
protected EntityProcessor.Result |
AbstractEntityProcessor.process(java.lang.String fieldName,
java.lang.Class<?> fieldClass,
java.lang.annotation.Annotation[] fieldAnnotations,
java.lang.annotation.Annotation[] annotations,
EntityGraph graph)
Method is called from the default implementation of
AbstractEntityProcessor.process(org.glassfish.jersey.message.filtering.spi.EntityProcessorContext) and is supposed to be overridden by
custom implementations of this class. |