|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.routing.TransformableData<DATA,RESULT>
DATA - data type.RESULT - result type.public final class TransformableData<DATA,RESULT>
Contains the reference to data as well as an
(optional) inflector that may be used
to transform the data into a result.
| Method Summary | ||
|---|---|---|
DATA |
data()
Get the transformable data. |
|
boolean |
hasInflector()
Check if there is an inflector available to process the data. |
|
Inflector<DATA,RESULT> |
inflector()
Get the inflector transforming the data to the result. |
|
static
|
of(REQUEST data)
Create a new transformable data instance, but with the inflector not present. |
|
static
|
of(REQUEST data,
Inflector<REQUEST,RESPONSE> inflector)
Create a new transformable data with an inflector instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <REQUEST,RESPONSE> TransformableData<REQUEST,RESPONSE> of(REQUEST data,
Inflector<REQUEST,RESPONSE> inflector)
REQUEST - data type.RESPONSE - result type.data - transformable data.inflector - data to result data transformation. May be {code null} if not available.
public static <REQUEST,RESPONSE> TransformableData<REQUEST,RESPONSE> of(REQUEST data)
REQUEST - data type.RESPONSE - result type.data - transformable data.
null inflector instance.public DATA data()
public Inflector<DATA,RESULT> inflector()
null if
the inflector is not available.
null if not available.public boolean hasInflector()
The absence of an inflector indicates that there was no suitable inflector found for the data.
true if there is a transforming inflector available for the data,
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||