public class ApplicationServlet extends HttpServlet implements ManagedServlet, Reloadable, ResourceLocator
Use it as the webengine servlet in web.xml if you want hot reload, otherwise
directly use the Jersey servlet: ServletContainer
.
Constructor and Description |
---|
ApplicationServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.osgi.framework.Bundle |
getBundle() |
com.sun.jersey.spi.container.servlet.ServletContainer |
getContainer() |
RenderingEngine |
getRenderingEngine() |
File |
getResourceFile(String key)
Get a file resource given a key
|
URL |
getResourceURL(String key)
Gets an URL resource given a key
|
void |
init(ServletConfig config) |
void |
reload() |
void |
service(HttpServletRequest request,
HttpServletResponse response) |
void |
setDescriptor(ServletDescriptor sd) |
service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public void setDescriptor(ServletDescriptor sd)
setDescriptor
in interface ManagedServlet
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
ServletException
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
public void reload()
reload
in interface Reloadable
public RenderingEngine getRenderingEngine()
public org.osgi.framework.Bundle getBundle()
public com.sun.jersey.spi.container.servlet.ServletContainer getContainer()
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service
in class HttpServlet
ServletException
IOException
public File getResourceFile(String key)
ResourceLocator
getResourceFile
in interface ResourceLocator
public URL getResourceURL(String key)
ResourceLocator
getResourceURL
in interface ResourceLocator
key
- the resource keyCopyright © 2013 Nuxeo SA. All Rights Reserved.