Class EntityProcessorContextImpl
- java.lang.Object
-
- org.glassfish.jersey.message.filtering.EntityProcessorContextImpl
-
- All Implemented Interfaces:
EntityProcessorContext
final class EntityProcessorContextImpl extends java.lang.Object implements EntityProcessorContext
Defaultentity processor context
implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.jersey.message.filtering.spi.EntityProcessorContext
EntityProcessorContext.Type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>
clazz
private java.lang.reflect.Field
field
private EntityGraph
graph
private java.lang.reflect.Method
method
private EntityProcessorContext.Type
type
-
Constructor Summary
Constructors Constructor Description 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.Class<?> clazz, EntityGraph graph)
Create entity processor context for processing entity classes.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getEntityClass()
Get entity class to be processed.EntityGraph
getEntityGraph()
Get entity graph to be modified by the processing.java.lang.reflect.Field
getField()
Get field to be processed.java.lang.reflect.Method
getMethod()
Get method to be processed.EntityProcessorContext.Type
getType()
Get thetype
of this context.
-
-
-
Field Detail
-
type
private final EntityProcessorContext.Type type
-
clazz
private final java.lang.Class<?> clazz
-
field
private final java.lang.reflect.Field field
-
method
private final java.lang.reflect.Method method
-
graph
private final EntityGraph graph
-
-
Constructor Detail
-
EntityProcessorContextImpl
public EntityProcessorContextImpl(EntityProcessorContext.Type type, java.lang.Class<?> clazz, EntityGraph graph)
Create entity processor context for processing entity classes.- Parameters:
type
-EntityProcessorContext.Type.CLASS_READER
orEntityProcessorContext.Type.CLASS_WRITER
.clazz
- entity class.graph
- entity-filtering graph associated with entity class.
-
EntityProcessorContextImpl
public EntityProcessorContextImpl(EntityProcessorContext.Type type, java.lang.reflect.Field field, java.lang.reflect.Method method, EntityGraph graph)
Create entity processor context for processing entity properties.- Parameters:
type
-EntityProcessorContext.Type.PROPERTY_READER
orEntityProcessorContext.Type.PROPERTY_WRITER
.field
- entity property field.method
- entity property accessor.graph
- entity-filtering graph associated with entity class.
-
EntityProcessorContextImpl
public EntityProcessorContextImpl(EntityProcessorContext.Type type, java.lang.reflect.Method method, EntityGraph graph)
Create entity processor context for processing entity accessors.- Parameters:
type
-EntityProcessorContext.Type.METHOD_READER
orEntityProcessorContext.Type.METHOD_WRITER
.method
- entity property accessor.graph
- entity-filtering graph associated with entity class.
-
EntityProcessorContextImpl
public 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.- Parameters:
type
- type on entity processor context.clazz
- entity class.field
- entity property field.method
- entity property method.graph
- entity-filtering graph associated with entity class.
-
-
Method Detail
-
getType
public EntityProcessorContext.Type getType()
Description copied from interface:EntityProcessorContext
Get thetype
of this context.- Specified by:
getType
in interfaceEntityProcessorContext
- Returns:
- entity processing context type.
-
getEntityClass
public java.lang.Class<?> getEntityClass()
Description copied from interface:EntityProcessorContext
Get entity class to be processed. The entity class is available only forEntityProcessorContext.Type.CLASS_WRITER
andEntityProcessorContext.Type.CLASS_READER
context types.- Specified by:
getEntityClass
in interfaceEntityProcessorContext
- Returns:
- entity class or
null
if the class is not available.
-
getField
public java.lang.reflect.Field getField()
Description copied from interface:EntityProcessorContext
Get field to be processed. The field is available only forEntityProcessorContext.Type.PROPERTY_WRITER
andEntityProcessorContext.Type.PROPERTY_READER
context types.- Specified by:
getField
in interfaceEntityProcessorContext
- Returns:
- field or
null
if the field is not available.
-
getMethod
public java.lang.reflect.Method getMethod()
Description copied from interface:EntityProcessorContext
Get method to be processed. The method is available forEntityProcessorContext.Type.PROPERTY_WRITER
,EntityProcessorContext.Type.PROPERTY_READER
,EntityProcessorContext.Type.METHOD_WRITER
,EntityProcessorContext.Type.METHOD_READER
context types.- Specified by:
getMethod
in interfaceEntityProcessorContext
- Returns:
- method or
null
if the method is not available.
-
getEntityGraph
public EntityGraph getEntityGraph()
Description copied from interface:EntityProcessorContext
Get entity graph to be modified by the processing. The entity graph is available for all context types.- Specified by:
getEntityGraph
in interfaceEntityProcessorContext
- Returns:
- entity graph.
-
-