PageMixer demonstration with Servlet

pagemixer.servlet
Class ServletTemplate

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--pagemixer.servlet.ServletTemplate
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ServletConstants, ServletKeys
Direct Known Subclasses:
AuthServlet, ShopBasketServlet

public abstract class ServletTemplate
extends javax.servlet.http.HttpServlet
implements ServletKeys

Template for business logic Servlet.

See Also:
Serialized Form

Field Summary
protected  java.lang.String authPage_
           
protected  java.lang.String basketPage_
           
protected  java.lang.String topPage_
           
 
Fields inherited from interface common.ServletKeys
KEY_BASE_HREF
 
Fields inherited from interface common.ServletConstants
INIT_AUTH_PASSWORD, INIT_AUTH_USERNAME, INIT_PAGE_AUTH, INIT_PAGE_SHOP_BASKET, INIT_PAGE_TOP, REQUEST_BASE_HREF
 
Constructor Summary
ServletTemplate()
           
 
Method Summary
protected abstract  void doAction(jp.ne.dti.lares.foozy.pagemixer.servlet.ServletConsumerContext context)
           
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void forward(jp.ne.dti.lares.foozy.pagemixer.servlet.ServletConsumerContext context, java.lang.String forwardTo)
           
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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
 

Field Detail

topPage_

protected java.lang.String topPage_

authPage_

protected java.lang.String authPage_

basketPage_

protected java.lang.String basketPage_
Constructor Detail

ServletTemplate

public ServletTemplate()
Method Detail

doAction

protected abstract void doAction(jp.ne.dti.lares.foozy.pagemixer.servlet.ServletConsumerContext context)
                          throws javax.servlet.ServletException,
                                 java.io.IOException

forward

protected void forward(jp.ne.dti.lares.foozy.pagemixer.servlet.ServletConsumerContext context,
                       java.lang.String forwardTo)
                throws javax.servlet.ServletException,
                       java.io.IOException

doGet

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

doPost

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

init

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

PageMixer demonstration with Servlet