|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.api.model.AbstractResource
public class AbstractResource
Abstraction for resource class
Constructor Summary | |
---|---|
AbstractResource(Class<?> resourceClass)
Creates a new instance of AbstractResource |
|
AbstractResource(Class<?> resourceClass,
PathValue uriPath)
Creates a new instance of AbstractResource |
|
AbstractResource(String path,
AbstractResource ar)
Create a new instance from an existing AbstractResource but defining a new path. |
Method Summary | ||
---|---|---|
void |
accept(AbstractModelVisitor visitor)
|
|
|
getAnnotation(Class<T> a)
|
|
Annotation[] |
getAnnotations()
|
|
List<AbstractModelComponent> |
getComponents()
|
|
List<AbstractResourceConstructor> |
getConstructors()
|
|
Annotation[] |
getDeclaredAnnotations()
|
|
List<AbstractField> |
getFields()
|
|
PathValue |
getPath()
|
|
List<Method> |
getPostConstructMethods()
|
|
List<Method> |
getPreDestroyMethods()
|
|
Class<?> |
getResourceClass()
|
|
List<AbstractResourceMethod> |
getResourceMethods()
Provides a non-null list of resource methods available on the resource |
|
List<AbstractSetterMethod> |
getSetterMethods()
|
|
List<AbstractSubResourceLocator> |
getSubResourceLocators()
Provides a non-null list of subresource locators available on the resource |
|
List<AbstractSubResourceMethod> |
getSubResourceMethods()
Provides a non-null list of subresource methods available on the resource |
|
boolean |
isAnnotationPresent(Class<? extends Annotation> a)
|
|
boolean |
isRootResource()
|
|
boolean |
isSubResource()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractResource(Class<?> resourceClass)
public AbstractResource(Class<?> resourceClass, PathValue uriPath)
public AbstractResource(String path, AbstractResource ar)
path
- the path.ar
- the existing abstract resource.Method Detail |
---|
public Class<?> getResourceClass()
public boolean isSubResource()
public boolean isRootResource()
public PathValue getPath()
getPath
in interface PathAnnotated
public List<AbstractResourceConstructor> getConstructors()
public List<AbstractField> getFields()
public List<AbstractSetterMethod> getSetterMethods()
public List<AbstractResourceMethod> getResourceMethods()
public List<AbstractSubResourceMethod> getSubResourceMethods()
public List<AbstractSubResourceLocator> getSubResourceLocators()
public List<Method> getPostConstructMethods()
public List<Method> getPreDestroyMethods()
public void accept(AbstractModelVisitor visitor)
accept
in interface AbstractModelComponent
public boolean isAnnotationPresent(Class<? extends Annotation> a)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> a)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public String toString()
toString
in class Object
public List<AbstractModelComponent> getComponents()
getComponents
in interface AbstractModelComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |