shocks.framework
Class ShocksHttpServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byshocks.framework.ShocksHttpServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ShocksHttpServlet
extends javax.servlet.http.HttpServlet

This servlet is the entrance point into the Shocks framework. Its role is to initialize the metadata binding and pooling system and forward control to the workflow processor.

See Also:
Serialized Form

Constructor Summary
ShocksHttpServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process a GET request.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Calls doGet().
 void init()
          Load up the Shocks system.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShocksHttpServlet

public ShocksHttpServlet()
Method Detail

init

public void init()
Load up the Shocks system.


doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException

Process a GET request. This takes place in two stages.

  1. Parse the request URI for the action thread.
  2. Forward control to a WorkflowController instance.

Throws:
javax.servlet.ServletException
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Calls doGet().

Throws:
javax.servlet.ServletException
java.io.IOException