|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.Application
public final class Application
Jersey server-side application.
Container implementations use the application to instance to process requests
by invoking the apply(request, responseWriter)
method on a configured application instance.
ResourceConfig,
ContainerProvider| Nested Class Summary | |
|---|---|
static interface |
Application.Builder
Jersey application builder that provides programmatic API for creating server-side JAX-RS / Jersey applications. |
| Constructor Summary | |
|---|---|
Application()
|
|
| Method Summary | |
|---|---|
void |
addModules(org.glassfish.hk2.Module... modules)
Dynamically binds HK2 modules. |
Future<javax.ws.rs.core.Response> |
apply(javax.ws.rs.core.Request request)
Invokes a request and returns the response future. |
void |
apply(javax.ws.rs.core.Request request,
ContainerResponseWriter responseWriter)
The main request/response processing entry point for Jersey container implementations. |
static Application.Builder |
builder()
Create new application builder configured with custom ResourceConfig. |
static Application.Builder |
builder(ResourceConfig resourceConfig)
Create new application builder configured with custom ResourceConfig. |
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 Application()
| Method Detail |
|---|
public static Application.Builder builder()
ResourceConfig.
public static Application.Builder builder(@Nullable
ResourceConfig resourceConfig)
ResourceConfig.
resourceConfig - custom ResourceConfig
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(javax.ws.rs.core.Request request,
ContainerResponseWriter responseWriter)
container context to suspend & resume the
processing as well as write the response back to the container.
request - request data.responseWriter - request-scoped container context.public org.glassfish.hk2.Services getServices()
Services relevant to current application.
Services instance.public ServiceProviders getServiceProviders()
public void addModules(org.glassfish.hk2.Module... modules)
modules - newly bound modules.Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||