Class ParameterList
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.params.ParameterList
-
@Deprecated public class ParameterList extends java.lang.ObjectDeprecated.Will be removed in next minor release.Contains a list of parameters for JAX-RS constructors, (sub) resource methods and sub resource locators.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classParameterList.AbstractParamGetterDeprecated.Abstract super class for access to @*Param.(package private) static classParameterList.CookieParamGetterDeprecated.(package private) static classParameterList.EncParamGetterDeprecated.Abstract super class for access to the entity or to @*Param where encoded is allowed (@PathParam, @MatrixParamand @QueryParam).(package private) static classParameterList.FormOrQueryParamGetterDeprecated.(package private) static classParameterList.FormParamGetterDeprecated.(package private) static classParameterList.HeaderParamGetterDeprecated.(package private) static classParameterList.MatrixParamGetterDeprecated.(package private) static classParameterList.NoEncParamGetterDeprecated.Abstract super class for access to the entity or to @*Param where encoded is allowed (@PathParam, @MatrixParamand @QueryParam).(package private) static interfaceParameterList.ParamGetterDeprecated.(package private) static classParameterList.PathParamGetterDeprecated.(package private) static classParameterList.QueryParamGetterDeprecated.private static classParameterList.UriInfoGetterDeprecated.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCOLL_PARAM_NOT_DEFAULTDeprecated.private static java.lang.BooleanDEFAULT_BOOLEANDeprecated.private static java.lang.ByteDEFAULT_BYTEDeprecated.private static java.lang.CharacterDEFAULT_CHARDeprecated.private static java.lang.DoubleDEFAULT_DOUBLEDeprecated.private static java.lang.FloatDEFAULT_FLOATDeprecated.private static java.lang.IntegerDEFAULT_INTDeprecated.private static java.lang.LongDEFAULT_LONGDeprecated.private static java.lang.ShortDEFAULT_SHORTDeprecated.private intentityPositionDeprecated.must call theEntityGetterfirst, if @FormParamis used.private static java.util.logging.LoggerlocalLoggerDeprecated.private intparamCountDeprecated.shortcut forparameters.lengthprivate ParameterList.ParamGetter[]parametersDeprecated.private static java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>>VALID_ANNOTATIONSDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateParameterList(java.lang.Class<?>[] parameterTypes, java.lang.reflect.Type[] genParamTypes, java.lang.annotation.Annotation[][] paramAnnoss, ThreadLocalizedContext tlContext, boolean leaveAllEncoded, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean paramsAllowed, boolean entityAllowed, java.util.logging.Logger logger, boolean allMustBeAvailable)Deprecated.ParameterList(java.lang.reflect.Constructor<?> constr, ThreadLocalizedContext tlContext, boolean leaveEncoded, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean paramsAllowed, java.util.logging.Logger logger, boolean allMustBeAvailable)Deprecated.ParameterList(java.lang.reflect.Method executeMethod, java.lang.reflect.Method annotatedMethod, ThreadLocalizedContext tlContext, boolean leaveEncoded, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean entityAllowed, java.util.logging.Logger logger)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static java.lang.Class<java.util.Collection<?>>collType(java.lang.reflect.ParameterizedType type)Deprecated.(package private) static java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>>createValidAnnotations()Deprecated.java.lang.Object[]get()Deprecated.Returns the concrete parameter array for the current request.(package private) static <A extends java.lang.annotation.Annotation>
AgetAnno(java.lang.annotation.Annotation[] annotations, java.lang.Class<A> annoType)Deprecated.Returns the given annotation, if it is available in the given array of annotations.(package private) static booleangetLeaveEncoded(java.lang.annotation.Annotation[] annotations)Deprecated.Returns true, if one of the annotations is @Encoded
-
-
-
Field Detail
-
COLL_PARAM_NOT_DEFAULT
private static final java.lang.String COLL_PARAM_NOT_DEFAULT
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_BOOLEAN
private static final java.lang.Boolean DEFAULT_BOOLEAN
Deprecated.
-
DEFAULT_BYTE
private static final java.lang.Byte DEFAULT_BYTE
Deprecated.
-
DEFAULT_CHAR
private static final java.lang.Character DEFAULT_CHAR
Deprecated.
-
DEFAULT_DOUBLE
private static final java.lang.Double DEFAULT_DOUBLE
Deprecated.
-
DEFAULT_FLOAT
private static final java.lang.Float DEFAULT_FLOAT
Deprecated.
-
DEFAULT_INT
private static final java.lang.Integer DEFAULT_INT
Deprecated.
-
DEFAULT_LONG
private static final java.lang.Long DEFAULT_LONG
Deprecated.
-
DEFAULT_SHORT
private static final java.lang.Short DEFAULT_SHORT
Deprecated.
-
localLogger
private static final java.util.logging.Logger localLogger
Deprecated.
-
VALID_ANNOTATIONS
private static final java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> VALID_ANNOTATIONS
Deprecated.
-
entityPosition
private final int entityPosition
Deprecated.must call theEntityGetterfirst, if @FormParamis used. A value less than zero means, that no special handling is needed.
-
paramCount
private final int paramCount
Deprecated.shortcut forparameters.length
-
parameters
private final ParameterList.ParamGetter[] parameters
Deprecated.- See Also:
paramCount
-
-
Constructor Detail
-
ParameterList
private ParameterList(java.lang.Class<?>[] parameterTypes, java.lang.reflect.Type[] genParamTypes, java.lang.annotation.Annotation[][] paramAnnoss, ThreadLocalizedContext tlContext, boolean leaveAllEncoded, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean paramsAllowed, boolean entityAllowed, java.util.logging.Logger logger, boolean allMustBeAvailable) throws MissingAnnotationException, IllegalTypeException, IllegalPathParamTypeExceptionDeprecated.- Parameters:
parameterTypes-genParamTypes-paramAnnoss-tlContext-leaveAllEncoded-jaxRsProviders-extensionBackwardMapping-paramsAllowed- true, if @*Params are allowed as parameter, otherwise false.entityAllowed- true, if the entity is allowed as parameter, otherwise false.logger-allMustBeAvailable- if true, all values must be available (for singeltons creation it must be false)- Throws:
MissingAnnotationExceptionIllegalTypeException- if the given class is not valid to be annotated with @Context.IllegalPathParamTypeException
-
ParameterList
public ParameterList(java.lang.reflect.Constructor<?> constr, ThreadLocalizedContext tlContext, boolean leaveEncoded, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean paramsAllowed, java.util.logging.Logger logger, boolean allMustBeAvailable) throws MissingAnnotationException, IllegalTypeException, IllegalPathParamTypeExceptionDeprecated.- Parameters:
constr-tlContext-leaveEncoded-jaxRsProviders-extensionBackwardMapping-paramsAllowed-logger-allMustBeAvailable-- Throws:
MissingAnnotationExceptionIllegalTypeException- if one of the parameters contains a @Contexton an type that must not be annotated with @Context.IllegalPathParamTypeException
-
ParameterList
public ParameterList(java.lang.reflect.Method executeMethod, java.lang.reflect.Method annotatedMethod, ThreadLocalizedContext tlContext, boolean leaveEncoded, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean entityAllowed, java.util.logging.Logger logger) throws MissingAnnotationException, IllegalTypeException, IllegalPathParamTypeExceptionDeprecated.- Parameters:
executeMethod-annotatedMethod-tlContext-leaveEncoded-jaxRsProviders-extensionBackwardMapping-entityAllowed-logger-- Throws:
MissingAnnotationExceptionIllegalTypeException- if one of the parameters contains a @Contexton an type that must not be annotated with @Context.IllegalPathParamTypeException
-
-
Method Detail
-
collType
private static java.lang.Class<java.util.Collection<?>> collType(java.lang.reflect.ParameterizedType type)
Deprecated.- Returns:
- the collection type for the given
parametrized Type.
If the given type do not represent an collection, null is returned.
-
createValidAnnotations
static java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> createValidAnnotations()
Deprecated.
-
getAnno
static <A extends java.lang.annotation.Annotation> A getAnno(java.lang.annotation.Annotation[] annotations, java.lang.Class<A> annoType)Deprecated.Returns the given annotation, if it is available in the given array of annotations.
-
getLeaveEncoded
static boolean getLeaveEncoded(java.lang.annotation.Annotation[] annotations)
Deprecated.Returns true, if one of the annotations is @Encoded
-
get
public java.lang.Object[] get() throws ConvertRepresentationException, java.lang.reflect.InvocationTargetException, javax.ws.rs.WebApplicationExceptionDeprecated.Returns the concrete parameter array for the current request.- Returns:
- the concrete parameter array for the current request.
- Throws:
java.lang.reflect.InvocationTargetExceptionConvertRepresentationExceptionjavax.ws.rs.WebApplicationException
-
-