com.sun.jersey.api.model
Class AbstractResourceMethod

java.lang.Object
  extended by com.sun.jersey.api.model.AbstractMethod
      extended by com.sun.jersey.api.model.AbstractResourceMethod
All Implemented Interfaces:
AbstractModelComponent, Parameterized, AnnotatedElement
Direct Known Subclasses:
AbstractSubResourceMethod

public class AbstractResourceMethod
extends AbstractMethod
implements Parameterized, AbstractModelComponent

Abstraction for a resource method


Constructor Summary
AbstractResourceMethod(AbstractResource resource, Method method, Class returnType, Type genericReturnType, String httpMethod, Annotation[] annotations)
           
 
Method Summary
 void accept(AbstractModelVisitor visitor)
           
 boolean areInputTypesDeclared()
           
 boolean areOutputTypesDeclared()
           
 List<AbstractModelComponent> getComponents()
           
 AbstractResource getDeclaringResource()
           
 Type getGenericReturnType()
           
 String getHttpMethod()
           
 List<Parameter> getParameters()
           
 Class getReturnType()
           
 List<MediaType> getSupportedInputTypes()
           
 List<MediaType> getSupportedOutputTypes()
           
 boolean hasEntity()
           
 void setAreInputTypesDeclared(boolean declared)
           
 void setAreOutputTypesDeclared(boolean declared)
           
 String toString()
           
 
Methods inherited from class com.sun.jersey.api.model.AbstractMethod
getAnnotation, getAnnotations, getDeclaredAnnotations, getMethod, getResource, isAnnotationPresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractResourceMethod

public AbstractResourceMethod(AbstractResource resource,
                              Method method,
                              Class returnType,
                              Type genericReturnType,
                              String httpMethod,
                              Annotation[] annotations)
Method Detail

getDeclaringResource

public AbstractResource getDeclaringResource()

getReturnType

public Class getReturnType()

getGenericReturnType

public Type getGenericReturnType()

getSupportedInputTypes

public List<MediaType> getSupportedInputTypes()

setAreInputTypesDeclared

public void setAreInputTypesDeclared(boolean declared)

areInputTypesDeclared

public boolean areInputTypesDeclared()

getSupportedOutputTypes

public List<MediaType> getSupportedOutputTypes()

setAreOutputTypesDeclared

public void setAreOutputTypesDeclared(boolean declared)

areOutputTypesDeclared

public boolean areOutputTypesDeclared()

getHttpMethod

public String getHttpMethod()

hasEntity

public boolean hasEntity()

getParameters

public List<Parameter> getParameters()
Specified by:
getParameters in interface Parameterized

accept

public void accept(AbstractModelVisitor visitor)
Specified by:
accept in interface AbstractModelComponent

getComponents

public List<AbstractModelComponent> getComponents()
Specified by:
getComponents in interface AbstractModelComponent

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Oracle Corporation. All Rights Reserved.