|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.webscripts.WebScriptResponseImpl
org.springframework.extensions.webscripts.jsf.WebScriptJSFResponse
public class WebScriptJSFResponse
Implementation of a WebScript Response for the JSF environment.
| 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 |
| Method Summary | |
|---|---|
void |
addHeader(String name,
String value)
Adds a response header with the given name and value. |
String |
encodeScriptUrl(String url)
Encode a script URL Note: Some Web Script Runtime environments (e.g. |
String |
getEncodeScriptUrlFunction(String name)
Return a client side javascript function to build urls to this service |
OutputStream |
getOutputStream()
Gets the Output Stream |
Writer |
getWriter()
Gets the Writer |
void |
reset()
Clears response buffer |
void |
setCache(Cache cache)
Sets the Cache control |
void |
setContentEncoding(String contentEncoding)
Sets the Content Encoding |
void |
setContentType(String contentType)
Sets the Content Type |
void |
setHeader(String name,
String value)
Set a response header with the given name and value. |
void |
setStatus(int status)
Sets the Response Status |
| Methods inherited from class org.springframework.extensions.webscripts.WebScriptResponseImpl |
|---|
getRuntime |
| 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 |
|---|
getRuntime |
| Method Detail |
|---|
public String encodeScriptUrl(String url)
WebScriptResponse
encodeScriptUrl in interface WebScriptResponseurl - to encode
WebScriptResponse.encodeScriptUrl(java.lang.String)public void reset()
WebScriptResponse
reset in interface WebScriptResponseWebScriptResponse.reset()
public OutputStream getOutputStream()
throws IOException
WebScriptResponse
getOutputStream in interface WebScriptResponseIOExceptionWebScriptResponse.getOutputStream()
public Writer getWriter()
throws IOException
WebScriptResponse
getWriter in interface WebScriptResponseIOExceptionWebScriptResponse.getWriter()public void setStatus(int status)
WebScriptResponse
setStatus in interface WebScriptResponseWebScriptResponse.setStatus(int)
public void setHeader(String name,
String value)
WebScriptResponse
setHeader in interface WebScriptResponsename - header namevalue - header valueWebScriptResponse.setHeader(java.lang.String, java.lang.String)
public void addHeader(String name,
String value)
WebScriptResponse
addHeader in interface WebScriptResponsename - header namevalue - header valueWebScriptResponse.addHeader(java.lang.String, java.lang.String)public void setCache(Cache cache)
WebScriptResponse
setCache in interface WebScriptResponsecache - cache controlorg.springframework.extensions.webscripts.WebScriptResponse#setCache()public void setContentType(String contentType)
WebScriptResponse
setContentType in interface WebScriptResponseWebScriptResponse.setContentType(java.lang.String)public void setContentEncoding(String contentEncoding)
WebScriptResponse
setContentEncoding in interface WebScriptResponsepublic String getEncodeScriptUrlFunction(String name)
WebScriptResponse
getEncodeScriptUrlFunction in interface WebScriptResponsename - Generated function name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||