com.sun.jersey.guice
Class JerseyServletModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by com.google.inject.servlet.ServletModule
          extended by com.sun.jersey.guice.JerseyServletModule
All Implemented Interfaces:
Module

public class JerseyServletModule
extends 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:

Author:
[email protected]

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.inject.servlet.ServletModule
ServletModule.FilterKeyBindingBuilder, ServletModule.ServletKeyBindingBuilder
 
Constructor Summary
JerseyServletModule()
           
 
Method Summary
 ExceptionMapperContext exceptionMapperContext(WebApplication webApplication)
           
 ExtendedUriInfo extendedUriInfo(WebApplication wa)
           
 FeaturesAndProperties fearturesAndProperties(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)
           
 HttpResponseContext responseContext(WebApplication wa)
           
 SecurityContext securityContext(WebApplication wa)
           
 UriInfo uriInfo(WebApplication wa)
           
 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
 

Constructor Detail

JerseyServletModule

public JerseyServletModule()
Method Detail

webApp

@Provides
public WebApplication webApp(GuiceContainer guiceContainer)

providers

@Provides
public Providers providers(WebApplication webApplication)

fearturesAndProperties

@Provides
public FeaturesAndProperties fearturesAndProperties(WebApplication webApplication)

messageBodyWorkers

@Provides
public MessageBodyWorkers messageBodyWorkers(WebApplication webApplication)

exceptionMapperContext

@Provides
public ExceptionMapperContext exceptionMapperContext(WebApplication webApplication)

httpContext

@Provides
public HttpContext httpContext(WebApplication webApplication)

uriInfo

@Provides
public UriInfo uriInfo(WebApplication wa)

extendedUriInfo

@Provides
public ExtendedUriInfo extendedUriInfo(WebApplication wa)

requestContext

@Provides
public HttpRequestContext requestContext(WebApplication wa)

httpHeaders

@Provides
public HttpHeaders httpHeaders(WebApplication wa)

request

@Provides
public Request request(WebApplication wa)

securityContext

@Provides
public SecurityContext securityContext(WebApplication wa)

responseContext

@Provides
public HttpResponseContext responseContext(WebApplication wa)


Copyright © 2012 Oracle Corporation. All Rights Reserved.