public class AbstractResourceMethod extends AbstractMethod implements Parameterized, AbstractModelComponent
Constructor and Description |
---|
AbstractResourceMethod(AbstractResource resource,
Method method,
Class returnType,
Type genericReturnType,
String httpMethod,
Annotation[] annotations) |
Modifier and Type | Method and Description |
---|---|
void |
accept(AbstractModelVisitor visitor) |
boolean |
areInputTypesDeclared() |
boolean |
areOutputTypesDeclared() |
List<AbstractModelComponent> |
getComponents() |
AbstractResource |
getDeclaringResource() |
Type |
getGenericReturnType() |
String |
getHttpMethod() |
List<Parameter> |
getParameters() |
Class |
getReturnType() |
List<javax.ws.rs.core.MediaType> |
getSupportedInputTypes() |
List<javax.ws.rs.core.MediaType> |
getSupportedOutputTypes() |
boolean |
hasEntity() |
void |
setAreInputTypesDeclared(boolean declared) |
void |
setAreOutputTypesDeclared(boolean declared) |
String |
toString() |
getAnnotation, getAnnotations, getDeclaredAnnotations, getMethod, getResource, isAnnotationPresent
public AbstractResourceMethod(AbstractResource resource, Method method, Class returnType, Type genericReturnType, String httpMethod, Annotation[] annotations)
public AbstractResource getDeclaringResource()
public Class getReturnType()
public Type getGenericReturnType()
public List<javax.ws.rs.core.MediaType> getSupportedInputTypes()
public void setAreInputTypesDeclared(boolean declared)
public boolean areInputTypesDeclared()
public List<javax.ws.rs.core.MediaType> getSupportedOutputTypes()
public void setAreOutputTypesDeclared(boolean declared)
public boolean areOutputTypesDeclared()
public String getHttpMethod()
public boolean hasEntity()
public List<Parameter> getParameters()
getParameters
in interface Parameterized
public void accept(AbstractModelVisitor visitor)
accept
in interface AbstractModelComponent
public List<AbstractModelComponent> getComponents()
getComponents
in interface AbstractModelComponent
Copyright © 2013 Oracle Corporation. All rights reserved.