public class AbstractResourceMethod extends AbstractMethod implements Parameterized, AbstractModelComponent
| Constructor and Description |
|---|
AbstractResourceMethod(AbstractResource resource,
java.lang.reflect.Method method,
java.lang.Class returnType,
java.lang.reflect.Type genericReturnType,
java.lang.String httpMethod,
java.lang.annotation.Annotation[] annotations) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AbstractModelVisitor visitor) |
boolean |
areInputTypesDeclared() |
boolean |
areOutputTypesDeclared() |
java.util.List<AbstractModelComponent> |
getComponents() |
AbstractResource |
getDeclaringResource() |
java.lang.reflect.Type |
getGenericReturnType() |
java.lang.String |
getHttpMethod() |
java.util.List<Parameter> |
getParameters() |
java.lang.Class |
getReturnType() |
java.util.List<MediaType> |
getSupportedInputTypes() |
java.util.List<MediaType> |
getSupportedOutputTypes() |
boolean |
hasEntity() |
void |
setAreInputTypesDeclared(boolean declared) |
void |
setAreOutputTypesDeclared(boolean declared) |
java.lang.String |
toString() |
getAnnotation, getAnnotations, getDeclaredAnnotations, getMethod, getResource, isAnnotationPresentpublic AbstractResourceMethod(AbstractResource resource, java.lang.reflect.Method method, java.lang.Class returnType, java.lang.reflect.Type genericReturnType, java.lang.String httpMethod, java.lang.annotation.Annotation[] annotations)
public AbstractResource getDeclaringResource()
public java.lang.Class getReturnType()
public java.lang.reflect.Type getGenericReturnType()
public java.util.List<MediaType> getSupportedInputTypes()
public void setAreInputTypesDeclared(boolean declared)
public boolean areInputTypesDeclared()
public java.util.List<MediaType> getSupportedOutputTypes()
public void setAreOutputTypesDeclared(boolean declared)
public boolean areOutputTypesDeclared()
public java.lang.String getHttpMethod()
public boolean hasEntity()
public java.util.List<Parameter> getParameters()
getParameters in interface Parameterizedpublic void accept(AbstractModelVisitor visitor)
accept in interface AbstractModelComponentpublic java.util.List<AbstractModelComponent> getComponents()
getComponents in interface AbstractModelComponentpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016 Oracle Corporation. All Rights Reserved.