|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.core.ResourceMethodRegistry
public class ResourceMethodRegistry
Registry of resources and methods/classes that can dispatch HTTP method requests
| Field Summary | |
|---|---|
protected ResteasyProviderFactory |
providerFactory
|
protected RootSegment |
rootSegment
|
protected int |
size
|
| Constructor Summary | |
|---|---|
ResourceMethodRegistry(ResteasyProviderFactory providerFactory)
|
|
| Method Summary | |
|---|---|
void |
addJndiResource(java.lang.String jndiName)
Add a JAX-RS endpoint that exists in JNDI |
void |
addJndiResource(java.lang.String jndiName,
java.lang.String basePath)
Add a JAX-RS endpoint that exists in JNDI. |
void |
addPerRequestResource(java.lang.Class clazz)
Register a vanilla JAX-RS resource class |
void |
addPerRequestResource(java.lang.Class clazz,
java.lang.String basePath)
Add a JAX-RS endpoint. |
void |
addResourceFactory(ResourceFactory ref)
Bind an endpoint ResourceFactory. |
void |
addResourceFactory(ResourceFactory ref,
java.lang.String base)
ResourceFactory.getScannableClass() defines what class should be scanned for JAX-RS annotations. |
void |
addResourceFactory(ResourceFactory ref,
java.lang.String base,
java.lang.Class<?> clazz)
ResourceFactory.getScannableClass() is not used, only the clazz parameter and not any implemented interfaces of the clazz parameter. |
void |
addSingletonResource(java.lang.Object singleton)
Add a JAX-RS endpoint. |
void |
addSingletonResource(java.lang.Object singleton,
java.lang.String basePath)
Add a JAX-RS endpoint. |
ResourceInvoker |
getResourceInvoker(HttpRequest request,
HttpResponse response)
Find a resource to invoke on |
RootSegment |
getRoot()
|
int |
getSize()
Number of endpoints registered |
protected void |
processMethod(ResourceFactory ref,
java.lang.String base,
java.lang.Class<?> clazz,
java.lang.reflect.Method method)
|
void |
removeRegistrations(java.lang.Class clazz)
Find all endpoints reachable by clazz and unregister them |
void |
removeRegistrations(java.lang.Class clazz,
java.lang.String base)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int size
protected ResteasyProviderFactory providerFactory
protected RootSegment rootSegment
| Constructor Detail |
|---|
public ResourceMethodRegistry(ResteasyProviderFactory providerFactory)
| Method Detail |
|---|
public void addPerRequestResource(java.lang.Class clazz,
java.lang.String basePath)
Registry
addPerRequestResource in interface RegistrybasePath - prefix path of resourcepublic void addSingletonResource(java.lang.Object singleton)
Registry
addSingletonResource in interface Registry
public void addSingletonResource(java.lang.Object singleton,
java.lang.String basePath)
Registry
addSingletonResource in interface RegistrybasePath - prefix path of resourcepublic void addJndiResource(java.lang.String jndiName)
Registry
addJndiResource in interface Registry
public void addJndiResource(java.lang.String jndiName,
java.lang.String basePath)
Registry
addJndiResource in interface RegistrybasePath - prefix path of resourcepublic void addPerRequestResource(java.lang.Class clazz)
addPerRequestResource in interface Registryclazz - public void addResourceFactory(ResourceFactory ref)
addResourceFactory in interface Registryfactory -
public void addResourceFactory(ResourceFactory ref,
java.lang.String base)
addResourceFactory in interface Registryfactory - base - base URI path for any resources provided by the factory, in addition to rootPath
public void addResourceFactory(ResourceFactory ref,
java.lang.String base,
java.lang.Class<?> clazz)
addResourceFactory in interface Registryfactory - base - base URI path for any resources provided by the factory, in addition to rootPathclazz - specific classoffset - path segment offset. > 0 means we're within a locator.
protected void processMethod(ResourceFactory ref,
java.lang.String base,
java.lang.Class<?> clazz,
java.lang.reflect.Method method)
public void removeRegistrations(java.lang.Class clazz)
removeRegistrations in interface Registryclazz -
public void removeRegistrations(java.lang.Class clazz,
java.lang.String base)
removeRegistrations in interface Registrypublic RootSegment getRoot()
public int getSize()
getSize in interface Registry
public ResourceInvoker getResourceInvoker(HttpRequest request,
HttpResponse response)
getResourceInvoker in interface RegistryhttpMethod - GET, POST, PUT, OPTIONS, TRACE, etc...path - uri pathcontentType - produced typeaccepts - accept header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||