Class ReprEntityGetter
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.params.ReprEntityGetter
-
- All Implemented Interfaces:
ParameterList.ParamGetter
- Direct Known Subclasses:
ReprEntityGetter.ClassReprEntityGetter,ReprEntityGetter.ReprClassEntityGetter,ReprEntityGetter.ReprOnlyEntityGetter
@Deprecated public abstract class ReprEntityGetter extends java.lang.Object implements ParameterList.ParamGetter
Deprecated.Will be removed in next minor release.AnEntityGetterfor RestletRepresentations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classReprEntityGetter.ClassReprEntityGetterDeprecated.EntityGetter, if there is a constructor with two arguments: Class and Representation(package private) static classReprEntityGetter.DirectReprEntityGetterDeprecated.EntityGetter, if Representation could directly be injected(package private) static classReprEntityGetter.ReprClassEntityGetterDeprecated.EntityGetter, if there is a constructor with two arguments: Representation and Class(package private) static classReprEntityGetter.ReprOnlyEntityGetterDeprecated.EntityGetter, if there is a constructor for only the entity.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.Constructor<? extends Representation>constrDeprecated.
-
Constructor Summary
Constructors Constructor Description ReprEntityGetter(java.lang.reflect.Constructor<?> constr)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ParameterList.ParamGettercreate(java.lang.Class<?> representationType, java.lang.reflect.Type convToGen, java.util.logging.Logger logger)Deprecated.Creates an EntityGetter for the given values, or null, if it is not available.(package private) abstract RepresentationcreateInstance(Representation entity)Deprecated.private java.lang.Class<? extends Representation>getReprClass()Deprecated.java.lang.ObjectgetValue()Deprecated.Returns the value for this param.
-
-
-
Field Detail
-
constr
final java.lang.reflect.Constructor<? extends Representation> constr
Deprecated.
-
-
Method Detail
-
create
public static ParameterList.ParamGetter create(java.lang.Class<?> representationType, java.lang.reflect.Type convToGen, java.util.logging.Logger logger)
Deprecated.Creates an EntityGetter for the given values, or null, if it is not available.- Parameters:
representationType-convToGen-logger-- Returns:
- the ParamGetter
-
createInstance
abstract Representation createInstance(Representation entity) throws java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Deprecated.- Throws:
java.lang.IllegalArgumentExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
getReprClass
private java.lang.Class<? extends Representation> getReprClass()
Deprecated.- Returns:
- the class of the
Representation.
-
getValue
public java.lang.Object getValue() throws java.lang.reflect.InvocationTargetException, ConvertRepresentationException, javax.ws.rs.WebApplicationExceptionDeprecated.Description copied from interface:ParameterList.ParamGetterReturns the value for this param.- Specified by:
getValuein interfaceParameterList.ParamGetter- Returns:
- the value for this param.
- Throws:
java.lang.reflect.InvocationTargetExceptionConvertRepresentationExceptionjavax.ws.rs.WebApplicationException- See Also:
ParameterList.ParamGetter.getValue()
-
-