org.springframework.extensions.webscripts
Class LocalWebScriptRuntime

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractRuntime
      extended by org.springframework.extensions.webscripts.LocalWebScriptRuntime
All Implemented Interfaces:
Runtime

public class LocalWebScriptRuntime
extends AbstractRuntime

WebScript Runtime for rendering as Web Framework components.

Author:
kevinr, muzquiano

Field Summary
 
Fields inherited from class org.springframework.extensions.webscripts.AbstractRuntime
container, logger
 
Constructor Summary
LocalWebScriptRuntime(Writer out, RuntimeContainer container, ServerProperties serverProps, LocalWebScriptContext context)
           
 
Method Summary
protected  Authenticator createAuthenticator()
          Create a Web Script Authenticator
protected  WebScriptRequest createRequest(Match match)
          Create a Web Script Request
protected  LocalWebScriptResponse createResponse()
          Create a Web Script Response
 LocalWebScriptContext getLocalContext()
           
 String getName()
          Gets the name of the Web Script Runtime
protected  String getScriptMethod()
          Get the Web Script Method e.g.
protected  String getScriptUrl()
          Get the Web Script Url
 void setScriptMethod(String method)
           
 
Methods inherited from class org.springframework.extensions.webscripts.AbstractRuntime
executeScript, executeScript, getContainer, getRealWebScriptRequest, getRealWebScriptResponse, getScriptParameters, getStatusCodeTemplate, getStatusTemplate, getTemplateParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalWebScriptRuntime

public LocalWebScriptRuntime(Writer out,
                             RuntimeContainer container,
                             ServerProperties serverProps,
                             LocalWebScriptContext context)
Method Detail

getLocalContext

public LocalWebScriptContext getLocalContext()

getName

public String getName()
Description copied from interface: Runtime
Gets the name of the Web Script Runtime

Returns:
name

getScriptUrl

protected String getScriptUrl()
Description copied from class: AbstractRuntime
Get the Web Script Url

Specified by:
getScriptUrl in class AbstractRuntime
Returns:
web script url

createRequest

protected WebScriptRequest createRequest(Match match)
Description copied from class: AbstractRuntime
Create a Web Script Request

Specified by:
createRequest in class AbstractRuntime
Parameters:
match - web script matching the script method and url
Returns:
web script request

createResponse

protected LocalWebScriptResponse createResponse()
Description copied from class: AbstractRuntime
Create a Web Script Response

Specified by:
createResponse in class AbstractRuntime
Returns:
web script response

getScriptMethod

protected String getScriptMethod()
Description copied from class: AbstractRuntime
Get the Web Script Method e.g. get, post

Specified by:
getScriptMethod in class AbstractRuntime
Returns:
web script method

createAuthenticator

protected Authenticator createAuthenticator()
Description copied from class: AbstractRuntime
Create a Web Script Authenticator

Specified by:
createAuthenticator in class AbstractRuntime
Returns:
web script authenticator

setScriptMethod

public void setScriptMethod(String method)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.