|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.Parameter
public class Parameter
Method parameter model.
| Nested Class Summary | |
|---|---|
static class |
Parameter.Source
Parameter injection sources type. |
| Method Summary | ||
|---|---|---|
static Parameter |
create(java.lang.Class concreteClass,
java.lang.Class declaringClass,
boolean keepEncoded,
java.lang.Class<?> rawType,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
Create a parameter model. |
|
static java.util.List<Parameter> |
create(java.lang.Class concreteClass,
java.lang.Class declaringClass,
java.lang.reflect.Constructor<?> ctor,
boolean keepEncoded)
Create a list of parameter models for a given resource method handler injectable constructor. |
|
static java.util.List<Parameter> |
create(java.lang.Class concreteClass,
java.lang.Class declaringClass,
java.lang.reflect.Method javaMethod,
boolean keepEncoded)
Create a list of parameter models for a given Java method handling a resource method, sub-resource method or a sub-resource locator. |
|
java.lang.annotation.Annotation |
getAnnotation()
Get the parameter annotations. |
|
|
getAnnotation(java.lang.Class<T> annotationClass)
|
|
java.lang.annotation.Annotation[] |
getAnnotations()
|
|
java.lang.annotation.Annotation[] |
getDeclaredAnnotations()
|
|
java.lang.String |
getDefaultValue()
Get the default parameter value. |
|
java.lang.Class<?> |
getRawType()
Get raw type information for the parameter. |
|
Parameter.Source |
getSource()
Get the parameter value source type. |
|
java.lang.String |
getSourceName()
Get the parameter value source name. |
|
java.lang.reflect.Type |
getType()
Get generic type information for the parameter. |
|
boolean |
hasDefaultValue()
Check if the parameter has a default value set. |
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
|
|
boolean |
isEncoded()
If true, the injected parameter value should remain encoded. |
|
boolean |
isQualified()
Check if the parameter is qualified. |
|
static Parameter |
overrideSource(Parameter original,
Parameter.Source source)
Create new parameter model by overriding source
of the original parameter model. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Parameter create(java.lang.Class concreteClass,
java.lang.Class declaringClass,
boolean keepEncoded,
java.lang.Class<?> rawType,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations)
concreteClass - concrete resource method handler implementation class.declaringClass - declaring class of the method the parameter belongs to.keepEncoded - set to true to disable automatic decoding
of all the constructor parameters. (See Encoded.rawType - raw Java parameter type.type - generic Java parameter type.annotations - parameter annotations.
public static java.util.List<Parameter> create(java.lang.Class concreteClass,
java.lang.Class declaringClass,
java.lang.reflect.Constructor<?> ctor,
boolean keepEncoded)
concreteClass - concrete resource method handler implementation class.declaringClass - TODO ???ctor - injectable constructor of the resource method handler.keepEncoded - set to true to disable automatic decoding
of all the constructor parameters. (See Encoded.
public static java.util.List<Parameter> create(java.lang.Class concreteClass,
java.lang.Class declaringClass,
java.lang.reflect.Method javaMethod,
boolean keepEncoded)
concreteClass - concrete resource method handler implementation class.declaringClass - the class declaring the handling Java method.javaMethod - Java method handling a resource method, sub-resource
method or a sub-resource locator.keepEncoded - set to true to disable automatic decoding
of all the method parameters. (See Encoded.
public static Parameter overrideSource(Parameter original,
Parameter.Source source)
source
of the original parameter model.
original - original parameter model.source - new overriding parameter source.
public java.lang.annotation.Annotation getAnnotation()
public Parameter.Source getSource()
public java.lang.String getSourceName()
public boolean isEncoded()
true, the injected parameter value should remain encoded.
true if the parameter value should remain encoded,
false otherwise.public boolean hasDefaultValue()
true if the default parameter value has been set,
false otherwise.public java.lang.String getDefaultValue()
null if no default value has
been set for the parameter.public java.lang.Class<?> getRawType()
public java.lang.reflect.Type getType()
public boolean isQualified()
qualified.
true if the parameter is qualified, false otherwise.public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
isAnnotationPresent in interface java.lang.reflect.AnnotatedElementpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||