org.melati.test
Class PoemServletTest

Package class diagram package PoemServletTest
java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.melati.servlet.ConfigServlet
              extended by org.melati.servlet.PoemServlet
                  extended by org.melati.test.PoemServletTest
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
HttpAuthenticationPoemServletTest

public class PoemServletTest
extends PoemServlet

Test a Melati configuration which accesses a POEM database without using a Template Engine.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.melati.servlet.ConfigServlet
melatiConfig, sysAdminEmail, sysAdminName
 
Constructor Summary
PoemServletTest()
          Constructor.
 
Method Summary
protected  void doPoemRequest(Melati melati)
          Override this method to build up your own output.
protected  String getUploadMessage(Melati melati)
           
protected  void prePoemSession(Melati melati)
          Normally one would ensure that these settings are present in the database, but they are ensured here so that everything is in one place.
 
Methods inherited from class org.melati.servlet.PoemServlet
_handleException, destroy, doConfiguredRequest, getSysAdminEmail, getSysAdminName, handleException, poemContext, poemContextWithLDB
 
Methods inherited from class org.melati.servlet.ConfigServlet
doGet, doPost, error, httpStatusCode, init, melatiConfig, setSysAdminEmail, setSysAdminName, writeConnectionPendingException, writeError
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

PoemServletTest

public PoemServletTest()
Constructor.

Method Detail

prePoemSession

protected void prePoemSession(Melati melati)
                       throws Exception
Normally one would ensure that these settings are present in the database, but they are ensured here so that everything is in one place. A place to do things before entering the session of the user, here is a good place to use root access token. Overriden in TemplateServlet.

Overrides:
prePoemSession in class PoemServlet
Parameters:
melati - org.melati.Melati A source of information about the Melati database context (database, table, object) and utility objects such as error handlers.
Throws:
Exception
See Also:
PoemServlet.prePoemSession(org.melati.Melati)

doPoemRequest

protected void doPoemRequest(Melati melati)
                      throws javax.servlet.ServletException,
                             IOException
Description copied from class: PoemServlet
Override this method to build up your own output.

Specified by:
doPoemRequest in class PoemServlet
Throws:
javax.servlet.ServletException
IOException

getUploadMessage

protected String getUploadMessage(Melati melati)


Copyright © 2000-2010 PanEris. All Rights Reserved.