com.sun.jersey.api.model
Class AbstractResource

java.lang.Object
  extended by com.sun.jersey.api.model.AbstractResource
All Implemented Interfaces:
AbstractModelComponent, UriPathAnnotated

public class AbstractResource
extends java.lang.Object
implements UriPathAnnotated, AbstractModelComponent

Abstraction for resource class


Constructor Summary
AbstractResource(java.lang.Class<?> resourceClass)
          Creates a new instance of AbstractResource
AbstractResource(java.lang.Class<?> resourceClass, UriPathValue uriPath)
          Creates a new instance of AbstractResource
 
Method Summary
 void accept(AbstractModelVisitor visitor)
           
 java.util.List<AbstractModelComponent> getComponents()
           
 java.util.List<AbstractResourceConstructor> getConstructors()
           
 java.util.List<AbstractField> getFields()
           
 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
 UriPathValue getUriPath()
           
 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

AbstractResource

public AbstractResource(java.lang.Class<?> resourceClass)
Creates a new instance of AbstractResource


AbstractResource

public AbstractResource(java.lang.Class<?> resourceClass,
                        UriPathValue uriPath)
Creates a new instance of AbstractResource

Method Detail

getResourceClass

public java.lang.Class<?> getResourceClass()

isSubResource

public boolean isSubResource()

isRootResource

public boolean isRootResource()

getUriPath

public UriPathValue getUriPath()
Specified by:
getUriPath in interface UriPathAnnotated

getConstructors

public java.util.List<AbstractResourceConstructor> getConstructors()

getFields

public java.util.List<AbstractField> getFields()

getSetterMethods

public java.util.List<AbstractSetterMethod> getSetterMethods()

getResourceMethods

public java.util.List<AbstractResourceMethod> getResourceMethods()
Provides a non-null list of resource methods available on the resource

Returns:
non-null abstract resource method list

getSubResourceMethods

public java.util.List<AbstractSubResourceMethod> getSubResourceMethods()
Provides a non-null list of subresource methods available on the resource

Returns:
non-null abstract subresource method list

getSubResourceLocators

public java.util.List<AbstractSubResourceLocator> getSubResourceLocators()
Provides a non-null list of subresource locators available on the resource

Returns:
non-null abstract subresource locator list

accept

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getComponents

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