se.portfolio.scam.http.command
Class CreateDefaultModel

java.lang.Object
  extended byse.portfolio.scam.http.command.AbstractProcessModel
      extended byse.portfolio.scam.http.command.CreateDefaultModel
All Implemented Interfaces:
Command

public class CreateDefaultModel
extends AbstractProcessModel

Adds properties to a resource with values deduced from the context. Theese properties is only added if the resource does not exist in the repository. The resource is identified by the request attribute "uri" and the model containing the model for the resource is contained in a ModelBean.

Version:
$Revision: 1.6 $
Author:
Jöran
Created:
den 28 februari 2003

Constructor Summary
CreateDefaultModel()
           
 
Method Summary
 CommandResponse execute(HttpServletRequest request, HttpServletResponse response)
          Execute the command.
 
Methods inherited from class se.portfolio.scam.http.command.AbstractProcessModel
init, setCreatedDate, setModifiedDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateDefaultModel

public CreateDefaultModel()
Method Detail

execute

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

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


Copyright © 2003 SCAM. All Rights Reserved.