org.jwarp.service.web.forward
Class AForwardAlg

java.lang.Object
  |
  +--org.jwarp.service.web.forward.AForwardAlg
All Implemented Interfaces:
IConfigurable, IForwardAlg
Direct Known Subclasses:
ForwardHtmlAlg, ForwardJspAlg, ForwardServletAlg, ForwardXSLAlg

public abstract class AForwardAlg
extends java.lang.Object
implements IForwardAlg


Field Summary
protected  org.jdom.Element config
          Configuration manager that holds further DB and connection setup.
protected  java.util.List history
           
protected  java.lang.String historyName
           
protected  java.lang.String id
           
protected static LogWriter log
          Log file access writer for the application.
 
Constructor Summary
AForwardAlg()
           
AForwardAlg(java.lang.String id)
           
 
Method Summary
 void configure(org.jdom.Element config)
          Pass the Configuration to the Configurable class.
 void forward(WebContext webContext, java.lang.String location)
          This method forwards to a JSP-page which produces the final response.
protected abstract  void forwardImpl(WebContext webContext, java.lang.String location)
           
 java.lang.String getID()
          Forward to an action as defined in the target params.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected org.jdom.Element config
Configuration manager that holds further DB and connection setup.

log

protected static LogWriter log
Log file access writer for the application.

historyName

protected java.lang.String historyName

id

protected java.lang.String id

history

protected java.util.List history
Constructor Detail

AForwardAlg

public AForwardAlg()

AForwardAlg

public AForwardAlg(java.lang.String id)
Method Detail

configure

public void configure(org.jdom.Element config)
Description copied from interface: IConfigurable
Pass the Configuration to the Configurable class. This method must always be called after the constructor and before any other method.
Specified by:
configure in interface IConfigurable
Following copied from interface: org.jwarp.service.configuration.IConfigurable
Parameters:
configuration - the class configurations.

getID

public java.lang.String getID()
Forward to an action as defined in the target params. Note that all parameters must be stored within the request for no stripping of the target parameter is made by default.
Specified by:
getID in interface IForwardAlg

forward

public void forward(WebContext webContext,
                    java.lang.String location)
             throws InvalidForwardException,
                    InvalidForwardTypeException
This method forwards to a JSP-page which produces the final response. If the target of the
forward is not a jsp page then a redirect is send to the browser.
Specified by:
forward in interface IForwardAlg
Parameters:
page - URL of jsp-page to forward
req - JavawebRequest
res - HttpServletResponse

forwardImpl

protected abstract void forwardImpl(WebContext webContext,
                                    java.lang.String location)
                             throws InvalidForwardException,
                                    java.io.IOException,
                                    org.jwarp.service.web.ServletException

©   O R C A   S y s t e m s