se.kmr.scam.client.http.command
Class CreateAbstractViewByType

java.lang.Object
  extended byse.kmr.scam.client.http.command.CreateAbstractViewByType
All Implemented Interfaces:
Command

public class CreateAbstractViewByType
extends Object
implements Command

Extracts an (editable) view for a component. The component is the resource described in a ModelBean instance (request scoop). The command returns a Forward response to the page that will render the component.
Note: If the ModelBean contains more than one component it is undetermined which one is used.

Version:
$Revision: 1.12 $
Author:
Jöran
Created:
den 9 april 2003

Constructor Summary
CreateAbstractViewByType()
           
 
Method Summary
 CommandResponse execute(HttpServletRequest request, HttpServletResponse response)
          Execute the command.
 void init(Map args)
          Initialize the command with arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateAbstractViewByType

public CreateAbstractViewByType()
Method Detail

execute

public CommandResponse execute(HttpServletRequest request,
                               HttpServletResponse response)
                        throws HttpException
Execute the command.

Specified by:
execute in interface Command
Parameters:
request - holds information from the client.
response - holds response information sent to the client.
Returns:
Returns an CommandResponse object.
Throws:
HttpException - thrown in case of an exception during execution of the command.

init

public void init(Map args)
Initialize the command with arguments.

Specified by:
init in interface Command
Parameters:
args - command arguments.


Copyright © 2003 SCAM. All Rights Reserved.