com.google.checkout.web
Class CheckoutMessageHandlerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.checkout.web.CheckoutMessageHandlerServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CheckoutMessageHandlerServlet
extends javax.servlet.http.HttpServlet

Author:
simonjsmith, Inderjeet Singh (inder@google.com)
See Also:
Serialized Form

Constructor Summary
CheckoutMessageHandlerServlet()
           
 
Method Summary
protected  java.lang.String dispatch(MerchantInfo mi, java.lang.String message)
          Overrides base class method to load the configuration from web.xml deployment descriptor
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init(javax.servlet.ServletConfig config)
          Overrides servlet method to load notification processor configuration from web.xml
 
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

CheckoutMessageHandlerServlet

public CheckoutMessageHandlerServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Overrides servlet method to load notification processor configuration from web.xml

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException

dispatch

protected java.lang.String dispatch(MerchantInfo mi,
                                    java.lang.String message)
                             throws CheckoutException
Overrides base class method to load the configuration from web.xml deployment descriptor

Parameters:
mi - The merchant information
message - The checkout message to process
Returns:
The string result from processing the checkout message
Throws:
CheckoutException - if there was an error dispatching the processing the merchant's information