public class JerseyHandlerFilter extends Object implements javax.servlet.Filter, org.glassfish.jersey.server.spi.Container
ApplicationHandler and calls its handle method. Requests are transformed
to ContainerRequest objects by the servletRequestToContainerRequest(ServletRequest) method.
Jersey responses are written directly to the ServletResponse by the JerseyServletResponseWriter.| Modifier and Type | Field and Description |
|---|---|
static String |
JERSEY_SERVLET_REQUEST_PROPERTY |
static String |
JERSEY_SERVLET_RESPONSE_PROPERTY |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
org.glassfish.jersey.server.ApplicationHandler |
getApplicationHandler() |
org.glassfish.jersey.server.ResourceConfig |
getConfiguration() |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
reload()
Shuts down and restarts the application handler in the current container.
|
void |
reload(org.glassfish.jersey.server.ResourceConfig resourceConfig)
Restarts the application handler and configures a different
Application object. |
public static final String JERSEY_SERVLET_REQUEST_PROPERTY
public static final String JERSEY_SERVLET_RESPONSE_PROPERTY
public void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic org.glassfish.jersey.server.ResourceConfig getConfiguration()
getConfiguration in interface org.glassfish.jersey.server.spi.Containerpublic org.glassfish.jersey.server.ApplicationHandler getApplicationHandler()
getApplicationHandler in interface org.glassfish.jersey.server.spi.Containerpublic void reload()
ApplicationHandler
object is re-initialized with the Application object initially set in the LambdaContainer.getInstance()
call.reload in interface org.glassfish.jersey.server.spi.Containerpublic void reload(org.glassfish.jersey.server.ResourceConfig resourceConfig)
Application object. The new application
resets the one currently configured in the container.reload in interface org.glassfish.jersey.server.spi.ContainerresourceConfig - An initialized ApplicationCopyright © 2020. All rights reserved.