com.taursys.servlet.respond
Class AbstractResponder

java.lang.Object
  extended bycom.taursys.servlet.respond.AbstractResponder
All Implemented Interfaces:
Responder
Direct Known Subclasses:
ClientRedirectResponder, ContentResponder, ErrorResponder, NoResponseResponder

public abstract class AbstractResponder
extends java.lang.Object
implements Responder

AbstractResponder is a base class for most responders.

Version:
1.0
Author:
Marty Phelan

Constructor Summary
AbstractResponder()
          Constructs a new AbstractResponder
 
Method Summary
 ServletForm getServletForm()
          Get the ServletForm this subcomponent supports.
abstract  void respond()
          Provide the appropriate response for the ServletForm.
 void setServletForm(ServletForm newServletForm)
          Set the ServletForm this subcomponent supports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResponder

public AbstractResponder()
Constructs a new AbstractResponder

Method Detail

respond

public abstract void respond()
                      throws java.lang.Exception
Provide the appropriate response for the ServletForm.

Specified by:
respond in interface Responder
Throws:
java.lang.Exception

getServletForm

public ServletForm getServletForm()
Get the ServletForm this subcomponent supports.

Returns:
the ServletForm this subcomponent supports.

setServletForm

public void setServletForm(ServletForm newServletForm)
Set the ServletForm this subcomponent supports. This method is normally invoked by the ServletForm when this subcomponent is attached to it via the setResponder method. You should not set this property.

Specified by:
setServletForm in interface Responder
Parameters:
newServletForm - the ServletForm this subcomponent supports.


Copyright © 2007 Martin T Phelan. All Rights Reserved.