Class WebScriptResponseImpl
- java.lang.Object
-
- org.springframework.extensions.webscripts.WebScriptResponseImpl
-
- All Implemented Interfaces:
WebScriptResponse
- Direct Known Subclasses:
WebScriptJSFResponse,WebScriptPortletResponse,WebScriptServletResponse
public abstract class WebScriptResponseImpl extends java.lang.Object implements WebScriptResponse
Basic Implementation of a Web Script Request- Author:
- davidc
-
-
Field Summary
-
Fields inherited from interface org.springframework.extensions.webscripts.WebScriptResponse
ATOM_FORMAT, HEADER_LOCATION, HTML_FORMAT, JSON_FORMAT, OPENSEARCH_DESCRIPTION_FORMAT, RSS_FORMAT, XML_FORMAT
-
-
Constructor Summary
Constructors Constructor Description WebScriptResponseImpl(Runtime runtime)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringencodeResourceUrl(java.lang.String url)Encode a resource URL Note: Some Web Script Runtime environments (e.g.java.lang.StringgetEncodeResourceUrlFunction(java.lang.String name)Return a client side javascript function to build resource urls for this serviceRuntimegetRuntime()Gets the initiating runtime-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.extensions.webscripts.WebScriptResponse
addHeader, encodeScriptUrl, getEncodeScriptUrlFunction, getOutputStream, getWriter, reset, setCache, setContentEncoding, setContentType, setHeader, setStatus
-
-
-
-
Constructor Detail
-
WebScriptResponseImpl
public WebScriptResponseImpl(Runtime runtime)
Construct- Parameters:
runtime- Runtime
-
-
Method Detail
-
getRuntime
public Runtime getRuntime()
Description copied from interface:WebScriptResponseGets the initiating runtime- Specified by:
getRuntimein interfaceWebScriptResponse- Returns:
- runtime that constructed this response
-
encodeResourceUrl
public java.lang.String encodeResourceUrl(java.lang.String url)
Description copied from interface:WebScriptResponseEncode a resource URL Note: Some Web Script Runtime environments (e.g. JSR-268, Surf) require urls to be re-written.- Specified by:
encodeResourceUrlin interfaceWebScriptResponse- Parameters:
url- to encode- Returns:
- encoded url
-
getEncodeResourceUrlFunction
public java.lang.String getEncodeResourceUrlFunction(java.lang.String name)
Description copied from interface:WebScriptResponseReturn a client side javascript function to build resource urls for this service- Specified by:
getEncodeResourceUrlFunctionin interfaceWebScriptResponse- Parameters:
name- Generated function name- Returns:
- javascript function definition
-
-