com.atlassian.plugin.servlet
Class DelegatingPluginServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.atlassian.plugin.servlet.DelegatingPluginServlet
All Implemented Interfaces:
java.io.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:

See Also:
Serialized Form

Constructor Summary
DelegatingPluginServlet(ServletModuleDescriptor descriptor)
           
 
Method Summary
 void destroy()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getInitParameter(java.lang.String name)
           
 java.util.Enumeration<java.lang.String> getInitParameterNames()
           
 ServletModuleDescriptor getModuleDescriptor()
           
 javax.servlet.ServletConfig getServletConfig()
           
 javax.servlet.ServletContext getServletContext()
           
 java.lang.String getServletInfo()
           
 java.lang.String getServletName()
           
 int hashCode()
           
 void init()
           
 void init(javax.servlet.ServletConfig config)
           
 void log(java.lang.String msg)
           
 void log(java.lang.String message, java.lang.Throwable t)
           
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 java.lang.String toString()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegatingPluginServlet

public DelegatingPluginServlet(ServletModuleDescriptor descriptor)
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.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(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
Specified by:
getInitParameter in interface javax.servlet.ServletConfig
Overrides:
getInitParameter in class javax.servlet.GenericServlet

getInitParameterNames

public java.util.Enumeration<java.lang.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 java.lang.String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet

getServletName

public java.lang.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 java.lang.Object

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

log

public void log(java.lang.String message,
                java.lang.Throwable t)
Overrides:
log in class javax.servlet.GenericServlet

log

public void log(java.lang.String msg)
Overrides:
log in class javax.servlet.GenericServlet

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getModuleDescriptor

public ServletModuleDescriptor getModuleDescriptor()


Copyright © 2010 Atlassian. All Rights Reserved.