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