org.melati.test
Class CharsetTemplateServletTest

Package class diagram package CharsetTemplateServletTest
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.servlet.TemplateServlet
                      extended by org.melati.test.CharsetTemplateServletTest
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CharsetTemplateServletTest
extends TemplateServlet

Test display of various characters using a Template Engine.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.melati.servlet.TemplateServlet
templateEngine
 
Fields inherited from class org.melati.servlet.ConfigServlet
melatiConfig, sysAdminEmail, sysAdminName
 
Constructor Summary
CharsetTemplateServletTest()
           
 
Method Summary
protected  String doTemplateRequest(Melati melati, ServletTemplateContext context)
          Override this method to build up your own output.
 String getServletName()
           
protected  PoemContext poemContext(Melati melati)
          Set up the melati context so we don't have to specify the logicaldatabase on the pathinfo.
 
Methods inherited from class org.melati.servlet.TemplateServlet
addExtension, doPoemRequest, error, init, prePoemSession
 
Methods inherited from class org.melati.servlet.PoemServlet
_handleException, destroy, doConfiguredRequest, getSysAdminEmail, getSysAdminName, handleException, poemContextWithLDB
 
Methods inherited from class org.melati.servlet.ConfigServlet
doGet, doPost, httpStatusCode, 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, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharsetTemplateServletTest

public CharsetTemplateServletTest()
Method Detail

doTemplateRequest

protected String doTemplateRequest(Melati melati,
                                   ServletTemplateContext context)
                            throws Exception
Description copied from class: TemplateServlet
Override this method to build up your own output.

Specified by:
doTemplateRequest in class TemplateServlet
Parameters:
melati - the current Melati
context - the current ServletTemplateContext
Returns:
a Template name, possibly excluding extension.
Throws:
Exception

getServletName

public String getServletName()
Specified by:
getServletName in interface javax.servlet.ServletConfig
Overrides:
getServletName in class javax.servlet.GenericServlet

poemContext

protected PoemContext poemContext(Melati melati)
                           throws PathInfoException
Set up the melati context so we don't have to specify the logicaldatabase on the pathinfo. Useful when writing appications where you are typically only accessing a single database.

Overrides:
poemContext in class PoemServlet
Throws:
PathInfoException


Copyright © 2000-2010 PanEris. All Rights Reserved.