|
||||||||||
| 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.servlet.WebScriptServletResponse
public class WebScriptServletResponse
HTTP Servlet 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 |
| Constructor Summary | |
|---|---|
WebScriptServletResponse(Runtime container,
javax.servlet.http.HttpServletResponse res)
Construct |
|
| 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 |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Gets the HTTP Servlet Response |
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 |
| Constructor Detail |
|---|
public WebScriptServletResponse(Runtime container,
javax.servlet.http.HttpServletResponse res)
res - | Method Detail |
|---|
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
public void setStatus(int status)
WebScriptResponse
public void setHeader(String name,
String value)
WebScriptResponse
name - header namevalue - header value
public 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
IOExceptionpublic 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 | |||||||||