|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
public class DeclarativeWebScript
Script/template driven based implementation of an Web Script
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript |
|---|
AbstractWebScript.ScriptDetails |
| Constructor Summary | |
|---|---|
DeclarativeWebScript()
|
|
| Method Summary | |
|---|---|
void |
execute(WebScriptRequest req,
WebScriptResponse res)
Execute the Service |
protected Map<String,Object> |
executeImpl(WebScriptRequest req,
Status status)
Deprecated. |
protected Map<String,Object> |
executeImpl(WebScriptRequest req,
Status status,
Cache cache)
Execute custom Java logic |
protected Map<String,Object> |
executeImpl(WebScriptRequest req,
WebScriptStatus status)
Deprecated. |
protected void |
renderFormatTemplate(String format,
Map<String,Object> model,
Writer writer)
Render a template (of given format) to the Web Script Response |
| Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript |
|---|
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeclarativeWebScript()
| Method Detail |
|---|
public final void execute(WebScriptRequest req,
WebScriptResponse res)
throws IOException
WebScript
req - WebScriptRequest representing the request to this serviceres - WebScriptResponse encapsulating the result of this service
IOException
protected Map<String,Object> executeImpl(WebScriptRequest req,
WebScriptStatus status)
req - Web Script requeststatus - Web Script status
protected Map<String,Object> executeImpl(WebScriptRequest req,
Status status)
req - Web Script requeststatus - Web Script status
protected Map<String,Object> executeImpl(WebScriptRequest req,
Status status,
Cache cache)
req - Web Script requeststatus - Web Script statuscache - Web Script cache
protected final void renderFormatTemplate(String format,
Map<String,Object> model,
Writer writer)
format - template format (null, default format)model - data model to renderwriter - where to output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||