|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.resource.AnnotationInfo
public class AnnotationInfo
Descriptor for method annotations.
Constructor Summary | |
---|---|
AnnotationInfo(Class<?> resourceClass,
Method restletMethod,
Method javaMethod,
String value)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Indicates if the current variant is equal to the given variant. |
String |
getInput()
Returns the input part of the annotation value. |
Class<?>[] |
getJavaInputTypes()
Returns the input types of the Java method. |
Method |
getJavaMethod()
Returns the annotated 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. |
Class<?> |
getResourceClass()
Returns the resource interface 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. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnnotationInfo(Class<?> resourceClass, Method restletMethod, Method javaMethod, String value)
resourceClass
- The class or interface that hosts the annotated Java method.restletMethod
- The matching Restlet method.javaMethod
- The annotated Java method.value
- The annotation value.Method Detail |
---|
public boolean equals(Object other)
equals
in class Object
other
- The other variant.
public String getInput()
public Class<?>[] getJavaInputTypes()
public Method getJavaMethod()
public Class<?> getJavaOutputType()
public String getOutput()
public String getQuery()
public List<Variant> getRequestVariants(MetadataService metadataService, ConverterService converterService)
metadataService
- The metadata service to use.
public Class<?> getResourceClass()
public List<Variant> getResponseVariants(MetadataService metadataService, ConverterService converterService)
metadataService
- The metadata service to use.converterService
- The converter service to use.
public Method getRestletMethod()
public boolean isCompatible(Method restletMethod, Form queryParams, Representation requestEntity, MetadataService metadataService, ConverterService converterService)
restletMethod
- The Restlet method to match.requestEntity
- Optional request entity.metadataService
- The metadata service to use.converterService
- The converter service to use.
public boolean isCompatibleRequestEntity(Representation requestEntity, MetadataService metadataService, ConverterService converterService)
requestEntity
- Optional request entity.metadataService
- The metadata service to use.converterService
- The converter service to use.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |