|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.ApplicationHandler
public final class ApplicationHandler
Jersey server-side application handler.
Container implementations use theApplicationHandler API to process requests
by invoking the apply(request) method on a configured application
handler instance.
ResourceConfig,
ContainerProvider| Constructor Summary | |
|---|---|
ApplicationHandler()
Create a new Jersey application handler using a default configuration. |
|
ApplicationHandler(Application application)
Create a new Jersey server-side application handler configured by an instance of a JAX-RS Application sub-class. |
|
ApplicationHandler(java.lang.Class<? extends Application> jaxrsApplicationClass)
Create a new Jersey server-side application handler configured by a JAX-RS Application (sub-)class. |
|
| Method Summary | |
|---|---|
void |
apply(ContainerRequestContext containerContext)
The main request/response processing entry point for Jersey container implementations. |
java.util.concurrent.Future<Response> |
apply(Request request)
Invokes a request and returns the response future. |
ResourceConfig |
getConfiguration()
Get the application configuration. |
ServiceProviders |
getServiceProviders()
Get the service providers configured for the application. |
org.glassfish.hk2.Services |
getServices()
Returns Services relevant to current application. |
void |
registerAdditionalModules(java.util.Set<org.glassfish.hk2.Module> modules)
Registers modules into the HK2 service register. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationHandler()
public ApplicationHandler(java.lang.Class<? extends Application> jaxrsApplicationClass)
JAX-RS Application (sub-)class.
jaxrsApplicationClass - JAX-RS Application (sub-)class that will be
instantiated and used to configure the new Jersey
application handler.public ApplicationHandler(Application application)
JAX-RS Application sub-class.
application - an instance of a JAX-RS Application (sub-)class that
will be used to configure the new Jersey application handler.| Method Detail |
|---|
public void registerAdditionalModules(java.util.Set<org.glassfish.hk2.Module> modules)
modules - Modules to be registered.public java.util.concurrent.Future<Response> apply(Request request)
response future.
request - request data.
public void apply(ContainerRequestContext containerContext)
jax-rs request from the
container request context and uses the container response
writer from the provided container request context to suspend & resume the processing as
well as write the response back to the container. If the container request context contains
security context it will be registered for further request processing.
Custom scope injections will be initialized into the request scope.
containerContext - container request context of the current request.public org.glassfish.hk2.Services getServices()
Services relevant to current application.
Services instance.public ServiceProviders getServiceProviders()
public ResourceConfig getConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||