org.melati.app
Class DSDApp

Package class diagram package DSDApp
java.lang.Object
  extended by org.melati.app.AbstractConfigApp
      extended by org.melati.app.AbstractPoemApp
          extended by org.melati.app.AbstractTemplateApp
              extended by org.melati.app.DSDApp
All Implemented Interfaces:
App

public class DSDApp
extends AbstractTemplateApp

Since:
31 May 2007
Author:
timp

Field Summary
 
Fields inherited from class org.melati.app.AbstractTemplateApp
templateEngine
 
Fields inherited from class org.melati.app.AbstractConfigApp
melatiConfig, output
 
Constructor Summary
DSDApp()
          Constructor.
 
Method Summary
protected  String doTemplateRequest(Melati melati, TemplateContext templateContext)
          The main method to override.
protected  String dsdTemplate(TemplateContext context)
           
static void main(String[] args)
          The main entry point.
 
Methods inherited from class org.melati.app.AbstractTemplateApp
addExtension, doPoemRequest, init
 
Methods inherited from class org.melati.app.AbstractPoemApp
_handleException, doConfiguredRequest, handleException, poemContext, poemContextWithLDB, prePoemSession, setTableTroidMethod, term
 
Methods inherited from class org.melati.app.AbstractConfigApp
applyNamedArguments, getSysAdminEmail, getSysAdminName, melatiConfig, run, setOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.melati.app.App
run, setOutput
 

Constructor Detail

DSDApp

public DSDApp()
Constructor.

Method Detail

doTemplateRequest

protected String doTemplateRequest(Melati melati,
                                   TemplateContext templateContext)
                            throws Exception
The main method to override.

Specified by:
doTemplateRequest in class AbstractTemplateApp
Parameters:
melati - A Melati with arguments and properties set
templateContext - A TemplateContext containing a Melati
Returns:
the name of a template to expand
Throws:
Exception - if anything goes wrong
See Also:
(org.melati.Melati, org.melati.template.ServletTemplateContext)

dsdTemplate

protected String dsdTemplate(TemplateContext context)
Returns:
the DSD template name, the extension is added by the template engine

main

public static void main(String[] args)
                 throws Exception
The main entry point.

Parameters:
args - in format db table troid method where method is a template name
Throws:
Exception


Copyright © 2000-2010 PanEris. All Rights Reserved.