org.nuxeo.ecm.webengine.jaxrs.servlet
Class ApplicationServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.nuxeo.ecm.webengine.jaxrs.servlet.ApplicationServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig, ResourceLocator, Reloadable, ManagedServlet
- Direct Known Subclasses:
- WebEngineServlet
public class ApplicationServlet
- extends HttpServlet
- implements ManagedServlet, Reloadable, ResourceLocator
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
ApplicationServlet
public ApplicationServlet()
setDescriptor
public void setDescriptor(ServletDescriptor sd)
- Specified by:
setDescriptor
in interface ManagedServlet
init
public void init(ServletConfig config)
throws ServletException
- Specified by:
init
in interface Servlet
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet
reload
public void reload()
- Specified by:
reload
in interface Reloadable
getRenderingEngine
public RenderingEngine getRenderingEngine()
getBundle
public org.osgi.framework.Bundle getBundle()
getContainer
public com.sun.jersey.spi.container.servlet.ServletContainer getContainer()
service
public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
service
in class HttpServlet
- Throws:
ServletException
IOException
getResourceFile
public File getResourceFile(String key)
- Description copied from interface:
ResourceLocator
- Get a file resource given a key
- Specified by:
getResourceFile
in interface ResourceLocator
- Returns:
getResourceURL
public URL getResourceURL(String key)
- Description copied from interface:
ResourceLocator
- Gets an URL resource given a key
- Specified by:
getResourceURL
in interface ResourceLocator
- Parameters:
key
- the resource key
- Returns:
- the resource URL or null if no such result was found
Copyright © 2011 Nuxeo SAS. All Rights Reserved.