|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 WebScriptResponse
url
- to encode
WebScriptResponse.encodeScriptUrl(java.lang.String)
public void reset()
WebScriptResponse
reset
in interface WebScriptResponse
WebScriptResponse.reset()
public OutputStream getOutputStream() throws IOException
WebScriptResponse
getOutputStream
in interface WebScriptResponse
IOException
WebScriptResponse.getOutputStream()
public Writer getWriter() throws IOException
WebScriptResponse
getWriter
in interface WebScriptResponse
IOException
WebScriptResponse.getWriter()
public void setStatus(int status)
WebScriptResponse
setStatus
in interface WebScriptResponse
WebScriptResponse.setStatus(int)
public void setHeader(String name, String value)
WebScriptResponse
setHeader
in interface WebScriptResponse
name
- header namevalue
- header valueWebScriptResponse.setHeader(java.lang.String, java.lang.String)
public void addHeader(String name, String value)
WebScriptResponse
addHeader
in interface WebScriptResponse
name
- header namevalue
- header valueWebScriptResponse.addHeader(java.lang.String, java.lang.String)
public void setCache(Cache cache)
WebScriptResponse
setCache
in interface WebScriptResponse
cache
- cache controlorg.springframework.extensions.webscripts.WebScriptResponse#setCache()
public void setContentType(String contentType)
WebScriptResponse
setContentType
in interface WebScriptResponse
WebScriptResponse.setContentType(java.lang.String)
public void setContentEncoding(String contentEncoding)
WebScriptResponse
setContentEncoding
in interface WebScriptResponse
public String getEncodeScriptUrlFunction(String name)
WebScriptResponse
getEncodeScriptUrlFunction
in interface WebScriptResponse
name
- Generated function name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |