org.atmosphere.guice
Class AtmosphereJerseyServletModule
java.lang.Object
com.google.inject.AbstractModule
com.google.inject.servlet.ServletModule
org.atmosphere.guice.AtmosphereJerseyServletModule
- All Implemented Interfaces:
- com.google.inject.Module
public class AtmosphereJerseyServletModule
- extends com.google.inject.servlet.ServletModule
A 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
WebApplication
Providers
FeaturesAndProperties
MessageBodyWorkers
ExceptionMapperContext
HttpContext
UriInfo
ExtendedUriInfo
HttpRequestContext
HttpHeaders
Request
SecurityContext
HttpResponseContext
- Author:
- Paul.Sandoz@Sun.Com
| Nested classes/interfaces inherited from class com.google.inject.servlet.ServletModule |
com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder, com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder |
|
Method Summary |
com.sun.jersey.spi.container.ExceptionMapperContext |
exceptionMapperContext(com.sun.jersey.spi.container.WebApplication webApplication)
|
com.sun.jersey.api.core.ExtendedUriInfo |
extendedUriInfo(com.sun.jersey.spi.container.WebApplication wa)
|
com.sun.jersey.core.util.FeaturesAndProperties |
fearturesAndProperties(com.sun.jersey.spi.container.WebApplication webApplication)
|
com.sun.jersey.api.core.HttpContext |
httpContext(com.sun.jersey.spi.container.WebApplication webApplication)
|
javax.ws.rs.core.HttpHeaders |
httpHeaders(com.sun.jersey.spi.container.WebApplication wa)
|
com.sun.jersey.spi.MessageBodyWorkers |
messageBodyWorkers(com.sun.jersey.spi.container.WebApplication webApplication)
|
javax.ws.rs.ext.Providers |
providers(com.sun.jersey.spi.container.WebApplication webApplication)
|
javax.ws.rs.core.Request |
request(com.sun.jersey.spi.container.WebApplication wa)
|
com.sun.jersey.api.core.HttpRequestContext |
requestContext(com.sun.jersey.spi.container.WebApplication wa)
|
com.sun.jersey.api.core.HttpResponseContext |
responseContext(com.sun.jersey.spi.container.WebApplication wa)
|
javax.ws.rs.core.SecurityContext |
securityContext(com.sun.jersey.spi.container.WebApplication wa)
|
javax.ws.rs.core.UriInfo |
uriInfo(com.sun.jersey.spi.container.WebApplication wa)
|
com.sun.jersey.spi.container.WebApplication |
webApp(GuiceContainer guiceContainer)
|
| Methods inherited from class com.google.inject.servlet.ServletModule |
configure, configureServlets, filter, filterRegex, getServletContext, serve, serveRegex |
| Methods inherited from class com.google.inject.AbstractModule |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtmosphereJerseyServletModule
public AtmosphereJerseyServletModule()
webApp
@Provides
public com.sun.jersey.spi.container.WebApplication webApp(GuiceContainer guiceContainer)
providers
@Provides
public javax.ws.rs.ext.Providers providers(com.sun.jersey.spi.container.WebApplication webApplication)
fearturesAndProperties
@Provides
public com.sun.jersey.core.util.FeaturesAndProperties fearturesAndProperties(com.sun.jersey.spi.container.WebApplication webApplication)
messageBodyWorkers
@Provides
public com.sun.jersey.spi.MessageBodyWorkers messageBodyWorkers(com.sun.jersey.spi.container.WebApplication webApplication)
exceptionMapperContext
@Provides
public com.sun.jersey.spi.container.ExceptionMapperContext exceptionMapperContext(com.sun.jersey.spi.container.WebApplication webApplication)
httpContext
@Provides
public com.sun.jersey.api.core.HttpContext httpContext(com.sun.jersey.spi.container.WebApplication webApplication)
uriInfo
@Provides
public javax.ws.rs.core.UriInfo uriInfo(com.sun.jersey.spi.container.WebApplication wa)
extendedUriInfo
@Provides
public com.sun.jersey.api.core.ExtendedUriInfo extendedUriInfo(com.sun.jersey.spi.container.WebApplication wa)
requestContext
@Provides
public com.sun.jersey.api.core.HttpRequestContext requestContext(com.sun.jersey.spi.container.WebApplication wa)
httpHeaders
@Provides
public javax.ws.rs.core.HttpHeaders httpHeaders(com.sun.jersey.spi.container.WebApplication wa)
request
@Provides
public javax.ws.rs.core.Request request(com.sun.jersey.spi.container.WebApplication wa)
securityContext
@Provides
public javax.ws.rs.core.SecurityContext securityContext(com.sun.jersey.spi.container.WebApplication wa)
responseContext
@Provides
public com.sun.jersey.api.core.HttpResponseContext responseContext(com.sun.jersey.spi.container.WebApplication wa)
Copyright © 2015. All Rights Reserved.