|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(String jndiName)
Add a JAX-RS endpoint that exists in JNDI |
void |
addJndiResource(String jndiName,
String basePath)
Add a JAX-RS endpoint that exists in JNDI. |
void |
addPerRequestResource(Class clazz)
Register a vanilla JAX-RS resource class |
void |
addPerRequestResource(Class clazz,
String basePath)
Add a JAX-RS endpoint. |
void |
addResourceFactory(ResourceFactory ref)
Bind an endpoint ResourceFactory. |
void |
addResourceFactory(ResourceFactory ref,
String base)
ResourceFactory.getScannableClass() defines what class should be scanned for JAX-RS annotations. |
void |
addResourceFactory(ResourceFactory ref,
String base,
Class<?> clazz)
ResourceFactory.getScannableClass() is not used, only the clazz parameter and not any implemented interfaces of the clazz parameter. |
void |
addSingletonResource(Object singleton)
Add a JAX-RS endpoint. |
void |
addSingletonResource(Object singleton,
String basePath)
Add a JAX-RS endpoint. |
ResourceInvoker |
getResourceInvoker(HttpRequest request)
Find a resource to invoke on |
RootSegment |
getRoot()
|
int |
getSize()
Number of endpoints registered |
protected void |
processMethod(ResourceFactory ref,
String base,
Class<?> clazz,
Method implementation)
|
void |
removeRegistrations(Class clazz)
Find all endpoints reachable by clazz and unregister them |
void |
removeRegistrations(Class clazz,
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(Class clazz, String basePath)
Registry
addPerRequestResource
in interface Registry
basePath
- prefix path of resourcepublic void addSingletonResource(Object singleton)
Registry
addSingletonResource
in interface Registry
public void addSingletonResource(Object singleton, String basePath)
Registry
addSingletonResource
in interface Registry
basePath
- prefix path of resourcepublic void addJndiResource(String jndiName)
Registry
addJndiResource
in interface Registry
public void addJndiResource(String jndiName, String basePath)
Registry
addJndiResource
in interface Registry
basePath
- prefix path of resourcepublic void addPerRequestResource(Class clazz)
addPerRequestResource
in interface Registry
clazz
- public void addResourceFactory(ResourceFactory ref)
addResourceFactory
in interface Registry
factory
- public void addResourceFactory(ResourceFactory ref, String base)
addResourceFactory
in interface Registry
factory
- base
- base URI path for any resources provided by the factory, in addition to rootPathpublic void addResourceFactory(ResourceFactory ref, String base, Class<?> clazz)
addResourceFactory
in interface Registry
factory
- 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, String base, Class<?> clazz, Method implementation)
public void removeRegistrations(Class clazz)
removeRegistrations
in interface Registry
clazz
- public void removeRegistrations(Class clazz, String base)
removeRegistrations
in interface Registry
public RootSegment getRoot()
public int getSize()
getSize
in interface Registry
public ResourceInvoker getResourceInvoker(HttpRequest request)
getResourceInvoker
in interface Registry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |