|
||||||||||
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.portlet.WebScriptPortletResponse
public class WebScriptPortletResponse
JSR-168 Web Script Response
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 |
javax.portlet.RenderResponse |
getRenderResponse()
Gets the Portlet Render Response |
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 |
Method Detail |
---|
public javax.portlet.RenderResponse getRenderResponse()
public void setStatus(int status)
WebScriptResponse
public void setHeader(String name, String value)
WebScriptResponse
name
- header namevalue
- header valuepublic void addHeader(String name, String value)
WebScriptResponse
name
- header namevalue
- header valuepublic void setContentType(String contentType)
WebScriptResponse
public void setContentEncoding(String contentEncoding)
WebScriptResponse
public void setCache(Cache cache)
WebScriptResponse
cache
- cache controlpublic void reset()
WebScriptResponse
public Writer getWriter() throws IOException
WebScriptResponse
IOException
public OutputStream getOutputStream() throws IOException
WebScriptResponse
IOException
public String encodeScriptUrl(String url)
WebScriptResponse
url
- to encode
public String getEncodeScriptUrlFunction(String name)
WebScriptResponse
name
- Generated function name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |