com.zwares.waf.forum
Class AbstractMBServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.zwares.base.servlet.AbstractServlet
                    |
                    +--com.zwares.waf.forum.AbstractMBServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
ForumServlet, MessageServlet, ThreadServlet

public abstract class AbstractMBServlet
extends AbstractServlet

See Also:
Serialized Form

Field Summary
protected  MBDataBase dataBase
           
protected  java.lang.String dbFilePath
           
protected  java.lang.String parentPath
           
protected  java.lang.String path
           
 
Fields inherited from class com.zwares.base.servlet.AbstractServlet
htmlPage, out
 
Constructor Summary
AbstractMBServlet()
           
 
Method Summary
protected  java.lang.String getBody()
           
protected abstract  java.lang.String getEntryTable()
           
protected abstract  int getEntryTableColumnWidth(int col)
           
protected abstract  java.lang.String getForm()
           
protected abstract  java.lang.String getFormTitle()
           
 void init(javax.servlet.ServletConfig config)
           
 void processDoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class com.zwares.base.servlet.AbstractServlet
display, doGet, doPost, getFooter, getHeader, getTitle, processDoPost
 
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
 

Field Detail

dataBase

protected MBDataBase dataBase

path

protected java.lang.String path

parentPath

protected java.lang.String parentPath

dbFilePath

protected java.lang.String dbFilePath
Constructor Detail

AbstractMBServlet

public AbstractMBServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class AbstractServlet
javax.servlet.ServletException

processDoGet

public void processDoGet(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.lang.Exception
Specified by:
processDoGet in class AbstractServlet
java.lang.Exception

getBody

protected java.lang.String getBody()
Specified by:
getBody in class AbstractServlet

getEntryTable

protected abstract java.lang.String getEntryTable()

getFormTitle

protected abstract java.lang.String getFormTitle()

getForm

protected abstract java.lang.String getForm()

getEntryTableColumnWidth

protected abstract int getEntryTableColumnWidth(int col)