se.portfolio.scam.http.command
Class CreateDefaultModel
java.lang.Object
se.portfolio.scam.http.command.AbstractProcessModel
se.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateDefaultModel
public CreateDefaultModel()
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.