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:
WebApplication
Providers
FeaturesAndProperties
MessageBodyWorkers
ExceptionMapperContext
HttpContext
UriInfo
ExtendedUriInfo
HttpRequestContext
HttpHeaders
Request
SecurityContext
HttpResponseContext
ResourceContext
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) |
javax.ws.rs.core.HttpHeaders |
httpHeaders(WebApplication wa) |
MessageBodyWorkers |
messageBodyWorkers(WebApplication webApplication) |
javax.ws.rs.ext.Providers |
providers(WebApplication webApplication) |
javax.ws.rs.core.Request |
request(WebApplication wa) |
HttpRequestContext |
requestContext(WebApplication wa) |
ResourceContext |
resourceContext(WebApplication webApplication) |
HttpResponseContext |
responseContext(WebApplication wa) |
javax.ws.rs.core.SecurityContext |
securityContext(WebApplication wa) |
javax.ws.rs.core.UriInfo |
uriInfo(WebApplication wa) |
WebApplication |
webApp(GuiceContainer guiceContainer) |
configure, configureServlets, filter, filterRegex, getServletContext, serve, serveRegex
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
@Provides public WebApplication webApp(GuiceContainer guiceContainer)
@Provides public javax.ws.rs.ext.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 javax.ws.rs.core.UriInfo uriInfo(WebApplication wa)
@Provides public ExtendedUriInfo extendedUriInfo(WebApplication wa)
@Provides public HttpRequestContext requestContext(WebApplication wa)
@Provides public javax.ws.rs.core.HttpHeaders httpHeaders(WebApplication wa)
@Provides public javax.ws.rs.core.Request request(WebApplication wa)
@Provides public javax.ws.rs.core.SecurityContext securityContext(WebApplication wa)
@Provides public HttpResponseContext responseContext(WebApplication wa)
Copyright © 2013 Oracle Corporation. All rights reserved.