Enum EntityProcessorContext.Type
- java.lang.Object
-
- java.lang.Enum<EntityProcessorContext.Type>
-
- org.glassfish.jersey.message.filtering.spi.EntityProcessorContext.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EntityProcessorContext.Type>
- Enclosing interface:
- EntityProcessorContext
public static enum EntityProcessorContext.Type extends java.lang.Enum<EntityProcessorContext.Type>
The type of the context which describes in which entity processing phase theEntityProcessor.process(EntityProcessorContext)
is triggered.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASS_READER
Context created to process entity class when reading entity from an input stream into an Java object.CLASS_WRITER
Context created to process entity class when writing entity to an output stream from an Java object.METHOD_READER
Context created to process property accessors when reading entity from an input stream into an Java object.METHOD_WRITER
Context created to process property accessors when writing entity to an output stream from an Java object.PROPERTY_READER
Context created to process entity properties when reading entity from an input stream into an Java object.PROPERTY_WRITER
Context created to process entity properties when writing entity to an output stream from an Java object.
-
Constructor Summary
Constructors Modifier Constructor Description private
Type()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntityProcessorContext.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EntityProcessorContext.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASS_READER
public static final EntityProcessorContext.Type CLASS_READER
Context created to process entity class when reading entity from an input stream into an Java object. Properties available for this type are:EntityProcessorContext.getEntityClass()
,EntityProcessorContext.getEntityGraph()
.
-
CLASS_WRITER
public static final EntityProcessorContext.Type CLASS_WRITER
Context created to process entity class when writing entity to an output stream from an Java object. Properties available for this type are:EntityProcessorContext.getEntityClass()
,EntityProcessorContext.getEntityGraph()
.
-
PROPERTY_READER
public static final EntityProcessorContext.Type PROPERTY_READER
Context created to process entity properties when reading entity from an input stream into an Java object. Properties available for this type are:EntityProcessorContext.getField()
,EntityProcessorContext.getMethod()
,EntityProcessorContext.getEntityGraph()
.
-
PROPERTY_WRITER
public static final EntityProcessorContext.Type PROPERTY_WRITER
Context created to process entity properties when writing entity to an output stream from an Java object. Properties available for this type are:EntityProcessorContext.getField()
,EntityProcessorContext.getMethod()
,EntityProcessorContext.getEntityGraph()
.
-
METHOD_READER
public static final EntityProcessorContext.Type METHOD_READER
Context created to process property accessors when reading entity from an input stream into an Java object. Properties available for this type are:EntityProcessorContext.getMethod()
,EntityProcessorContext.getEntityGraph()
.
-
METHOD_WRITER
public static final EntityProcessorContext.Type METHOD_WRITER
Context created to process property accessors when writing entity to an output stream from an Java object. Properties available for this type are:EntityProcessorContext.getMethod()
,EntityProcessorContext.getEntityGraph()
.
-
-
Method Detail
-
values
public static EntityProcessorContext.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EntityProcessorContext.Type c : EntityProcessorContext.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityProcessorContext.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-