@Singleton
public class Jersey2CompatGuiceContainer
extends com.sun.jersey.guice.spi.container.servlet.GuiceContainer
APPLICATION_CONFIG_CLASS, FEATURE_ALLOW_RAW_MANAGED_BEANS, FEATURE_FILTER_FORWARD_ON_404, GLASSFISH_DEFAULT_ERROR_PAGE_RESPONSE, JSP_TEMPLATES_BASE_PATH, PROPERTY_FILTER_CONTEXT_PATH, PROPERTY_WEB_PAGE_CONTENT_REGEX, RESOURCE_CONFIG_CLASS| Constructor and Description |
|---|
Jersey2CompatGuiceContainer(com.google.inject.Injector injector) |
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.UriBuilder |
fromUriJersey2Compat(String uri) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dispatches client requests to the
ServletContainer.service(java.net.URI, java.net.URI, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method. |
getDefaultResourceConfig, getWebApplication, initiateconfigure, configure, configure, create, destroy, doFilter, doFilter, getDefaultResourceConfig, getServletContext, getStaticContentPattern, getWebConfig, init, init, init, load, reload, servicedoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service@Inject public Jersey2CompatGuiceContainer(com.google.inject.Injector injector)
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
ServletContainer.service(java.net.URI, java.net.URI, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
method.service in class com.sun.jersey.spi.container.servlet.ServletContainerrequest - the HttpServletRequest object that
contains the request the client made to
the servlet.response - the HttpServletResponse object that
contains the response the servlet returns
to the client.IOException - if an input or output error occurs
while the servlet is handling the
HTTP request.javax.servlet.ServletException - if the HTTP request cannot
be handled.public static javax.ws.rs.core.UriBuilder fromUriJersey2Compat(String uri) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2010–2020. All rights reserved.