public class ApplicationServlet extends javax.servlet.http.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(javax.servlet.ServletConfig config) |
void |
reload() |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setDescriptor(ServletDescriptor sd) |
public void setDescriptor(ServletDescriptor sd)
setDescriptor in interface ManagedServletpublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void reload()
reload in interface Reloadablepublic RenderingEngine getRenderingEngine()
public org.osgi.framework.Bundle getBundle()
public com.sun.jersey.spi.container.servlet.ServletContainer getContainer()
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic File getResourceFile(String key)
ResourceLocatorgetResourceFile in interface ResourceLocatorpublic URL getResourceURL(String key)
ResourceLocatorgetResourceURL in interface ResourceLocatorkey - the resource keyCopyright © 2014 Nuxeo SA. All rights reserved.