|
||||||||||
| 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 the ApplicationHanlder API to process requests
by invoking the apply(request, responseWriter)
method on a configured application handler instance.
ResourceConfig,
ContainerProvider| Constructor Summary | |
|---|---|
ApplicationHandler()
|
|
ApplicationHandler(javax.ws.rs.core.Application application)
|
|
ApplicationHandler(Class<? extends javax.ws.rs.core.Application> jaxrsApplicationClass)
|
|
| Method Summary | |
|---|---|
void |
apply(ContainerRequestContext containerContext)
The main request/response processing entry point for Jersey container implementations. |
Future<javax.ws.rs.core.Response> |
apply(javax.ws.rs.core.Request request)
Invokes a request and returns the response future. |
ResourceConfig |
getConfiguration()
|
ServiceProviders |
getServiceProviders()
|
org.glassfish.hk2.Services |
getServices()
Returns Services relevant to current application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationHandler()
public ApplicationHandler(Class<? extends javax.ws.rs.core.Application> jaxrsApplicationClass)
public ApplicationHandler(javax.ws.rs.core.Application application)
| Method Detail |
|---|
public Future<javax.ws.rs.core.Response> apply(javax.ws.rs.core.Request request)
response future.
apply in interface Inflector<javax.ws.rs.core.Request,Future<javax.ws.rs.core.Response>>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 | |||||||||