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, isAnnotationPresent
public 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 Parameterized
public void accept(AbstractModelVisitor visitor)
accept
in interface AbstractModelComponent
public java.util.List<AbstractModelComponent> getComponents()
getComponents
in interface AbstractModelComponent
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2016 Oracle Corporation. All Rights Reserved.