ca.bc.gov.webade.http
Class WebADEActionServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.struts.action.ActionServlet
              extended byca.bc.gov.webade.http.WebADEActionServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class WebADEActionServlet
extends org.apache.struts.action.ActionServlet

Adds the Application functionality to the ActionServlet class. Extend this class if custom code is necessary to initialize the Application class.

See Also:
Serialized Form

Constructor Summary
WebADEActionServlet()
           
 
Method Summary
 void addServletMapping(java.lang.String arg0, java.lang.String arg1)
           
 void destroy()
           
 void doGet(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
 void doPost(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)
           
 boolean equals(java.lang.Object arg0)
           
abstract  java.lang.String getApplicationCode()
          This method is called when the Servlet Context is initialized.
 java.lang.String getInitParameter(java.lang.String arg0)
           
 java.util.Enumeration getInitParameterNames()
           
 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)
          Initialize this WebADEServlet.
 void initWebADE()
          This method can be overridden by WebADE applications to do any custom initialization that might be required.
 void log(java.lang.String arg0)
           
 void log(java.lang.String arg0, java.lang.Throwable arg1)
           
 void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Process an HTTP request.
 void service(javax.servlet.ServletRequest arg0, javax.servlet.ServletResponse arg1)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.struts.action.ActionServlet
getInternal
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebADEActionServlet

public WebADEActionServlet()
Method Detail

init

public final void init(javax.servlet.ServletConfig config)
                throws javax.servlet.ServletException
Initialize this WebADEServlet.

Parameters:
config - The servlet configuration loaded from file.
Throws:
javax.servlet.ServletException - Throw if an error occurs during the initialization.

process

public final void process(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse res)
                   throws javax.servlet.ServletException,
                          java.io.IOException
Process an HTTP request.

Parameters:
req -
res -
Throws:
javax.servlet.ServletException
java.io.IOException

getApplicationCode

public abstract java.lang.String getApplicationCode()
This method is called when the Servlet Context is initialized. It should return the unique application code for the target WebADE application, as defined in the Application table in the WebADE database.

Returns:
The unique application code String.

addServletMapping

public final void addServletMapping(java.lang.String arg0,
                                    java.lang.String arg1)
See Also:
ActionServlet.addServletMapping(java.lang.String, java.lang.String)

destroy

public final void destroy()
See Also:
Servlet.destroy()

doGet

public final void doGet(javax.servlet.http.HttpServletRequest arg0,
                        javax.servlet.http.HttpServletResponse arg1)
                 throws java.io.IOException,
                        javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException
See Also:
ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doPost

public final void doPost(javax.servlet.http.HttpServletRequest arg0,
                         javax.servlet.http.HttpServletResponse arg1)
                  throws java.io.IOException,
                         javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException
See Also:
ActionServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

init

public final void init()
                throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException
See Also:
GenericServlet.init()

initWebADE

public void initWebADE()
                throws javax.servlet.ServletException
This method can be overridden by WebADE applications to do any custom initialization that might be required.

Throws:
javax.servlet.ServletException

service

public final void service(javax.servlet.ServletRequest arg0,
                          javax.servlet.ServletResponse arg1)
                   throws javax.servlet.ServletException,
                          java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)

getInitParameter

public final java.lang.String getInitParameter(java.lang.String arg0)
See Also:
ServletConfig.getInitParameter(java.lang.String)

getInitParameterNames

public final java.util.Enumeration getInitParameterNames()
See Also:
ServletConfig.getInitParameterNames()

getServletConfig

public final javax.servlet.ServletConfig getServletConfig()
See Also:
Servlet.getServletConfig()

getServletContext

public final javax.servlet.ServletContext getServletContext()
See Also:
ServletConfig.getServletContext()

getServletInfo

public final java.lang.String getServletInfo()
See Also:
Servlet.getServletInfo()

getServletName

public final java.lang.String getServletName()
See Also:
ServletConfig.getServletName()

log

public final void log(java.lang.String arg0,
                      java.lang.Throwable arg1)
See Also:
GenericServlet.log(java.lang.String, java.lang.Throwable)

log

public final void log(java.lang.String arg0)
See Also:
GenericServlet.log(java.lang.String)

equals

public final boolean equals(java.lang.Object arg0)
See Also:
Object.equals(java.lang.Object)

hashCode

public final int hashCode()
See Also:
Object.hashCode()

toString

public final java.lang.String toString()
See Also:
Object.toString()