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 contextimplementation.
-
-
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<?>clazzprivate java.lang.reflect.Fieldfieldprivate EntityGraphgraphprivate java.lang.reflect.Methodmethodprivate EntityProcessorContext.Typetype
-
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.EntityGraphgetEntityGraph()Get entity graph to be modified by the processing.java.lang.reflect.FieldgetField()Get field to be processed.java.lang.reflect.MethodgetMethod()Get method to be processed.EntityProcessorContext.TypegetType()Get thetypeof 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_READERorEntityProcessorContext.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_READERorEntityProcessorContext.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_READERorEntityProcessorContext.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:EntityProcessorContextGet thetypeof this context.- Specified by:
getTypein interfaceEntityProcessorContext- Returns:
- entity processing context type.
-
getEntityClass
public java.lang.Class<?> getEntityClass()
Description copied from interface:EntityProcessorContextGet entity class to be processed. The entity class is available only forEntityProcessorContext.Type.CLASS_WRITERandEntityProcessorContext.Type.CLASS_READERcontext types.- Specified by:
getEntityClassin interfaceEntityProcessorContext- Returns:
- entity class or
nullif the class is not available.
-
getField
public java.lang.reflect.Field getField()
Description copied from interface:EntityProcessorContextGet field to be processed. The field is available only forEntityProcessorContext.Type.PROPERTY_WRITERandEntityProcessorContext.Type.PROPERTY_READERcontext types.- Specified by:
getFieldin interfaceEntityProcessorContext- Returns:
- field or
nullif the field is not available.
-
getMethod
public java.lang.reflect.Method getMethod()
Description copied from interface:EntityProcessorContextGet method to be processed. The method is available forEntityProcessorContext.Type.PROPERTY_WRITER,EntityProcessorContext.Type.PROPERTY_READER,EntityProcessorContext.Type.METHOD_WRITER,EntityProcessorContext.Type.METHOD_READERcontext types.- Specified by:
getMethodin interfaceEntityProcessorContext- Returns:
- method or
nullif the method is not available.
-
getEntityGraph
public EntityGraph getEntityGraph()
Description copied from interface:EntityProcessorContextGet entity graph to be modified by the processing. The entity graph is available for all context types.- Specified by:
getEntityGraphin interfaceEntityProcessorContext- Returns:
- entity graph.
-
-