public class JerseyServletModule
extends com.google.inject.servlet.ServletModule
ServletModule module that provides JAX-RS and Jersey related
bindings.
The module has a dependency on GuiceContainer, which is required
to be served in the ServletModule.configure() method.
The following bindings are defined:
| Constructor and Description |
|---|
JerseyServletModule() |
| Modifier and Type | Method and Description |
|---|---|
ExceptionMapperContext |
exceptionMapperContext(WebApplication webApplication) |
ExtendedUriInfo |
extendedUriInfo(WebApplication wa) |
FeaturesAndProperties |
featuresAndProperties(WebApplication webApplication) |
HttpContext |
httpContext(WebApplication webApplication) |
HttpHeaders |
httpHeaders(WebApplication wa) |
MessageBodyWorkers |
messageBodyWorkers(WebApplication webApplication) |
Providers |
providers(WebApplication webApplication) |
Request |
request(WebApplication wa) |
HttpRequestContext |
requestContext(WebApplication wa) |
ResourceContext |
resourceContext(WebApplication webApplication) |
HttpResponseContext |
responseContext(WebApplication wa) |
SecurityContext |
securityContext(WebApplication wa) |
UriInfo |
uriInfo(WebApplication wa) |
WebApplication |
webApp(GuiceContainer guiceContainer) |
configure, configureServlets, filter, filterRegex, getServletContext, serve, serveRegexaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding@Provides public WebApplication webApp(GuiceContainer guiceContainer)
@Provides public Providers providers(WebApplication webApplication)
@Provides public FeaturesAndProperties featuresAndProperties(WebApplication webApplication)
@Provides public MessageBodyWorkers messageBodyWorkers(WebApplication webApplication)
@Provides public ExceptionMapperContext exceptionMapperContext(WebApplication webApplication)
@Provides public ResourceContext resourceContext(WebApplication webApplication)
@Provides public HttpContext httpContext(WebApplication webApplication)
@Provides public UriInfo uriInfo(WebApplication wa)
@Provides public ExtendedUriInfo extendedUriInfo(WebApplication wa)
@Provides public HttpRequestContext requestContext(WebApplication wa)
@Provides public HttpHeaders httpHeaders(WebApplication wa)
@Provides public Request request(WebApplication wa)
@Provides public SecurityContext securityContext(WebApplication wa)
@Provides public HttpResponseContext responseContext(WebApplication wa)
Copyright © 2016 Oracle Corporation. All Rights Reserved.