se.kmr.scam.client.http
Class CommandChainImpl

java.lang.Object
  extended byse.kmr.scam.client.http.CommandChainImpl
All Implemented Interfaces:
CommandChain

public class CommandChainImpl
extends Object
implements CommandChain

Version:
$Revision: 1.14 $
Author:
Jöran Stark, jand
Created:
den 5 juni 2002

Constructor Summary
CommandChainImpl()
           
 
Method Summary
 CommandResponse execute(HttpServletRequest request, HttpServletResponse response)
          Executes all commands that has been added to this chain.
 String getName()
          Gets the identifier for this object.
 void init(Map args)
          Description of the Method
 void setName(String name)
          Sets the identifier for this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandChainImpl

public CommandChainImpl()
Method Detail

setName

public void setName(String name)
Sets the identifier for this object.

Specified by:
setName in interface CommandChain
Parameters:
name - The new name value

getName

public String getName()
Gets the identifier for this object.

Specified by:
getName in interface CommandChain
Returns:
value of the identifier.

init

public void init(Map args)
Description of the Method

Specified by:
init in interface CommandChain
Parameters:
args - Description of the Parameter

execute

public CommandResponse execute(HttpServletRequest request,
                               HttpServletResponse response)
                        throws HttpException
Executes all commands that has been added to this chain.

Note: Important to create new instances of HttpCommand to make the system thread-safe.

Note: Command.init(Hashtable) on each of the commands in the chain should have been performed.

Parameters:
request - Description of the Parameter
response - Description of the Parameter
Returns:
Description of the Return Value
Throws:
HttpException - Description of the Exception


Copyright © 2003 SCAM. All Rights Reserved.