public class MethodAnnotationInfo extends AnnotationInfo
annotationValue, javaClass, javaMethod, javaMethodImpl| Constructor and Description |
|---|
MethodAnnotationInfo(java.lang.Class<?> javaClass,
Method restletMethod,
java.lang.reflect.Method javaMethod,
java.lang.String annotationValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Indicates if the current object is equal to the given object.
|
java.lang.String |
getInput()
Returns the input part of the annotation value.
|
java.lang.Class<?>[] |
getJavaInputTypes()
Returns the input types of the Java method.
|
java.lang.Class<?> |
getJavaOutputType()
Returns the output type of the Java method.
|
java.lang.String |
getOutput()
Returns the output part of the annotation value.
|
java.lang.String |
getQuery()
Returns the optional query part of the annotation value.
|
java.util.List<Variant> |
getRequestVariants(MetadataService metadataService,
ConverterService converterService)
Returns a list of request variants based on the annotation value.
|
java.util.List<Variant> |
getResponseVariants(MetadataService metadataService,
ConverterService converterService)
Returns a list of response variants based on the annotation value.
|
Method |
getRestletMethod()
Returns the matching Restlet method.
|
boolean |
isCompatible(Method restletMethod,
Form queryParams,
Representation requestEntity,
MetadataService metadataService,
ConverterService converterService)
Indicates if the annotated method described is compatible with the given
parameters.
|
boolean |
isCompatibleRequestEntity(Representation requestEntity,
MetadataService metadataService,
ConverterService converterService)
Indicates if the given request entity is compatible with the annotated
method described.
|
java.lang.String |
toString() |
getAnnotationValue, getJavaActualType, getJavaActualType, getJavaActualType, getJavaClass, getJavaMethod, getTypeClasspublic MethodAnnotationInfo(java.lang.Class<?> javaClass,
Method restletMethod,
java.lang.reflect.Method javaMethod,
java.lang.String annotationValue)
javaClass - The class or interface that hosts the annotated Java method.restletMethod - The matching Restlet method.javaMethod - The annotated Java method.annotationValue - The annotation value.public boolean equals(java.lang.Object other)
equals in class AnnotationInfoother - The other object.public java.lang.String getInput()
public java.lang.Class<?>[] getJavaInputTypes()
public java.lang.Class<?> getJavaOutputType()
public java.lang.String getOutput()
public java.lang.String getQuery()
public java.util.List<Variant> getRequestVariants(MetadataService metadataService, ConverterService converterService) throws java.io.IOException
metadataService - The metadata service to use.java.io.IOExceptionpublic java.util.List<Variant> getResponseVariants(MetadataService metadataService, ConverterService converterService) throws java.io.IOException
metadataService - The metadata service to use.converterService - The converter service to use.java.io.IOExceptionpublic Method getRestletMethod()
public boolean isCompatible(Method restletMethod, Form queryParams, Representation requestEntity, MetadataService metadataService, ConverterService converterService) throws java.io.IOException
restletMethod - The Restlet method to match.requestEntity - Optional request entity.metadataService - The metadata service to use.converterService - The converter service to use.java.io.IOExceptionpublic boolean isCompatibleRequestEntity(Representation requestEntity, MetadataService metadataService, ConverterService converterService) throws java.io.IOException
requestEntity - Optional request entity.metadataService - The metadata service to use.converterService - The converter service to use.java.io.IOExceptionpublic java.lang.String toString()
toString in class AnnotationInfoCopyright © 2005-2014 Restlet.