public class ReloadingJerseyServlet extends com.sun.jersey.spi.container.servlet.ServletContainer implements Reloadable
Use it as the webengine servlet in web.xml if you want hot reload, otherwise use ServletContainer
.
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 |
---|
ReloadingJerseyServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init() |
void |
reloadIfNeeded() |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doFilter, doFilter, getServletContext, getStaticContentPattern, init, load, reload, service
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
public void init() throws javax.servlet.ServletException
init
in class com.sun.jersey.spi.container.servlet.ServletContainer
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
destroy
in interface javax.servlet.Servlet
destroy
in class com.sun.jersey.spi.container.servlet.ServletContainer
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class com.sun.jersey.spi.container.servlet.ServletContainer
javax.servlet.ServletException
IOException
public void reloadIfNeeded()
Copyright © 2015 Nuxeo SA. All rights reserved.