|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.ResourceClass
public class ResourceClass
Abstraction for resource class
| Constructor Summary | |
|---|---|
ResourceClass(Class<?> resourceClass)
Creates a new instance of ResourceClass. |
|
ResourceClass(Class<?> resourceClass,
PathValue uriPath)
Creates a new instance of ResourceClass. |
|
ResourceClass(String path,
ResourceClass ar)
Create a new instance from an existing ResourceClass but defining a new path. |
|
| Method Summary | |
|---|---|
void |
accept(ResourceModelVisitor visitor)
A component should call the visitor back with an appropriate visitor interface method to give it a chance to process. |
List<ResourceModelComponent> |
getComponents()
Should return all existing resource model sub-components. |
List<ResourceConstructor> |
getConstructors()
|
PathValue |
getPath()
|
Class<?> |
getResourceClass()
|
List<AbstractResourceMethod> |
getResourceMethods()
Provides a non-null list of resource methods available on the resource |
List<SubResourceLocator> |
getSubResourceLocators()
Provides a non-null list of subresource locators available on the resource |
List<SubResourceMethod> |
getSubResourceMethods()
Provides a non-null list of subresource methods available on the resource |
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 ResourceClass(Class<?> resourceClass)
ResourceClass.
resourceClass - resource class.
public ResourceClass(Class<?> resourceClass,
@Nullable
PathValue uriPath)
resourceClass - resource class.uriPath - path associated with created resource.
public ResourceClass(String path,
ResourceClass 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 PathAnnotatedpublic List<ResourceConstructor> getConstructors()
public List<AbstractResourceMethod> getResourceMethods()
public List<SubResourceMethod> getSubResourceMethods()
public List<SubResourceLocator> getSubResourceLocators()
public void accept(ResourceModelVisitor visitor)
ResourceModelComponent
accept in interface ResourceModelComponentvisitor - resource model visitor.public String toString()
toString in class Objectpublic List<ResourceModelComponent> getComponents()
ResourceModelComponent
getComponents in interface ResourceModelComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||