Class ReloadingJerseyServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.sun.jersey.spi.container.servlet.ServletContainer
-
- org.nuxeo.ecm.webengine.app.jersey.ReloadingJerseyServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Filter
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,Reloadable
public class ReloadingJerseyServlet extends com.sun.jersey.spi.container.servlet.ServletContainer implements Reloadable
JAX-RS servlet based on jersey servlet to provide hot reloading.Use it as the webengine servlet in web.xml if you want hot reload, otherwise use
ServletContainer
.- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.jersey.spi.container.servlet.ServletContainer
com.sun.jersey.spi.container.servlet.ServletContainer.ContextInjectableProvider<T extends Object>
-
-
Field Summary
-
Fields inherited from class com.sun.jersey.spi.container.servlet.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 Summary
Constructors Constructor Description ReloadingJerseyServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reloadIfNeeded()
void
service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Methods inherited from class com.sun.jersey.spi.container.servlet.ServletContainer
configure, configure, configure, create, destroy, doFilter, doFilter, getDefaultResourceConfig, getDefaultResourceConfig, getServletContext, getStaticContentPattern, getWebConfig, init, init, init, initiate, load, reload, service
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.webengine.jaxrs.Reloadable
reload
-
-
-
-
Method Detail
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
service
in classcom.sun.jersey.spi.container.servlet.ServletContainer
- Throws:
javax.servlet.ServletException
IOException
-
reloadIfNeeded
public void reloadIfNeeded()
-
-