public class MethodAnnotationInfo extends AnnotationInfo
annotationValue, javaClass, javaMethod, javaMethodImpl| Constructor and Description |
|---|
MethodAnnotationInfo(Class<?> javaClass,
Method restletMethod,
Method javaMethod,
String annotationValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Indicates if the current object is equal to the given object.
|
String |
getInput()
Returns the input part of the annotation value.
|
Class<?>[] |
getJavaInputTypes()
Returns the input types of the Java method.
|
Class<?> |
getJavaOutputType()
Returns the output type of the Java method.
|
String |
getOutput()
Returns the output part of the annotation value.
|
String |
getQuery()
Returns the optional query part of the annotation value.
|
List<Variant> |
getRequestVariants(MetadataService metadataService,
ConverterService converterService)
Returns a list of request variants based on the annotation value.
|
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.
|
int |
hashCode() |
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.
|
String |
toString() |
getAnnotationValue, getJavaActualType, getJavaActualType, getJavaActualType, getJavaClass, getJavaMethod, getTypeClasspublic MethodAnnotationInfo(Class<?> javaClass, Method restletMethod, Method javaMethod, 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(Object other)
equals in class AnnotationInfoother - The other object.public String getInput()
public Class<?>[] getJavaInputTypes()
public Class<?> getJavaOutputType()
public String getOutput()
public String getQuery()
public List<Variant> getRequestVariants(MetadataService metadataService, ConverterService converterService) throws IOException
metadataService - The metadata service to use.IOExceptionpublic List<Variant> getResponseVariants(MetadataService metadataService, ConverterService converterService) throws IOException
metadataService - The metadata service to use.converterService - The converter service to use.IOExceptionpublic Method getRestletMethod()
public int hashCode()
hashCode in class AnnotationInfopublic boolean isCompatible(Method restletMethod, Form queryParams, Representation requestEntity, MetadataService metadataService, ConverterService converterService) throws IOException
restletMethod - The Restlet method to match.requestEntity - Optional request entity.metadataService - The metadata service to use.converterService - The converter service to use.IOExceptionpublic boolean isCompatibleRequestEntity(Representation requestEntity, MetadataService metadataService, ConverterService converterService) throws IOException
requestEntity - Optional request entity.metadataService - The metadata service to use.converterService - The converter service to use.IOExceptionpublic String toString()
toString in class AnnotationInfoCopyright © 2005–2025. All rights reserved.