|
||||||||||
| 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 handle(requestContext)
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 | |
|---|---|
java.util.concurrent.Future<JerseyContainerResponseContext> |
apply(JerseyContainerRequestContext requestContext)
Invokes a request and returns the response future. |
java.util.concurrent.Future<JerseyContainerResponseContext> |
apply(JerseyContainerRequestContext requestContext,
java.io.OutputStream outputStream)
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 |
handle(JerseyContainerRequestContext requestContext)
The main request/response processing entry point for Jersey container implementations. |
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<JerseyContainerResponseContext> apply(JerseyContainerRequestContext requestContext)
response future.
requestContext - request data.
public java.util.concurrent.Future<JerseyContainerResponseContext> apply(JerseyContainerRequestContext requestContext,
java.io.OutputStream outputStream)
response future.
requestContext - request data.outputStream - response output stream.
public void handle(JerseyContainerRequestContext requestContext)
The method invokes the request processing of the provided
container request context and uses the
container response writer to suspend & resume the processing
as well as write the response back to the container.
The the security context stored in the container request context
is bound as an injectable instance in the scope of the processed request context.
Also, any cCustom scope injections are initialized in the
current request scope.
requestContext - 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 | |||||||||