public interface Registry
Modifier and Type | Method and Description |
---|---|
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)
Add a JAX-RS endpoint.
|
void |
addPerRequestResource(Class<?> clazz,
String basePath)
Add a JAX-RS endpoint.
|
void |
addResourceFactory(ResourceFactory ref)
Add a custom resource implementation endpoint.
|
void |
addResourceFactory(ResourceFactory ref,
String basePath)
Add a custom resource implementation endpoint.
|
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 |
addResourceFactory(ResourceFactory ref,
String base,
Class<?>[] classes) |
void |
addSingletonResource(Object singleton)
Add a JAX-RS endpoint.
|
void |
addSingletonResource(Object singleton,
String basePath)
Add a JAX-RS endpoint.
|
ResourceInvoker |
getResourceInvoker(HttpRequest request) |
int |
getSize() |
void |
removeRegistrations(Class<?> clazz) |
void |
removeRegistrations(Class<?> clazz,
String base) |
void addPerRequestResource(Class<?> clazz)
clazz
- void addPerRequestResource(Class<?> clazz, String basePath)
clazz
- basePath
- prefix path of resourcevoid addSingletonResource(Object singleton)
clazz
- void addSingletonResource(Object singleton, String basePath)
clazz
- basePath
- prefix path of resourcevoid addJndiResource(String jndiName)
clazz
- void addJndiResource(String jndiName, String basePath)
clazz
- basePath
- prefix path of resourcevoid addResourceFactory(ResourceFactory ref)
ref
- void addResourceFactory(ResourceFactory ref, String basePath)
ref
- basePath
- prefix path of resourcevoid addResourceFactory(ResourceFactory ref, String base, Class<?> clazz)
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.void addResourceFactory(ResourceFactory ref, String base, Class<?>[] classes)
void removeRegistrations(Class<?> clazz)
int getSize()
ResourceInvoker getResourceInvoker(HttpRequest request)
Copyright © 2018 JBoss by Red Hat. All rights reserved.