com.atlassian.plugin.servlet
Class DelegatingPluginServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.atlassian.plugin.servlet.DelegatingPluginServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class DelegatingPluginServlet
- extends javax.servlet.http.HttpServlet
We are wrapping the plugins servlet in another servlet so that we can set some things up before
the plugins servlet is called. Currently we do the following:
- the Threads classloader to the plugins classloader)
- wrap the request so that path info is right for the servlets
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
DelegatingPluginServlet
public DelegatingPluginServlet(ServletModuleDescriptor descriptor)
service
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Overrides:
service in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Servlet- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Servlet- Overrides:
destroy in class javax.servlet.GenericServlet
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter in interface javax.servlet.ServletConfig- Overrides:
getInitParameter in class javax.servlet.GenericServlet
getInitParameterNames
public Enumeration<String> getInitParameterNames()
- Specified by:
getInitParameterNames in interface javax.servlet.ServletConfig- Overrides:
getInitParameterNames in class javax.servlet.GenericServlet
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig in interface javax.servlet.Servlet- Overrides:
getServletConfig in class javax.servlet.GenericServlet
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext in interface javax.servlet.ServletConfig- Overrides:
getServletContext in class javax.servlet.GenericServlet
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo in interface javax.servlet.Servlet- Overrides:
getServletInfo in class javax.servlet.GenericServlet
getServletName
public String getServletName()
- Specified by:
getServletName in interface javax.servlet.ServletConfig- Overrides:
getServletName in class javax.servlet.GenericServlet
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
log
public void log(String message,
Throwable t)
- Overrides:
log in class javax.servlet.GenericServlet
log
public void log(String msg)
- Overrides:
log in class javax.servlet.GenericServlet
toString
public String toString()
- Overrides:
toString in class Object
getModuleDescriptor
public ServletModuleDescriptor getModuleDescriptor()
Copyright © 2011 Atlassian. All Rights Reserved.