|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebScriptResponse
Web Script Response
Field Summary | |
---|---|
static String |
ATOM_FORMAT
|
static String |
HEADER_LOCATION
|
static String |
HTML_FORMAT
|
static String |
JSON_FORMAT
|
static String |
OPENSEARCH_DESCRIPTION_FORMAT
|
static String |
RSS_FORMAT
|
static String |
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 |
Runtime |
getRuntime()
Gets the initiating runtime |
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 |
Field Detail |
---|
static final String HTML_FORMAT
static final String ATOM_FORMAT
static final String RSS_FORMAT
static final String XML_FORMAT
static final String JSON_FORMAT
static final String OPENSEARCH_DESCRIPTION_FORMAT
static final String HEADER_LOCATION
Method Detail |
---|
void setStatus(int status)
status
- void setHeader(String name, String value)
name
- header namevalue
- header valuevoid addHeader(String name, String value)
name
- header namevalue
- header valuevoid setContentType(String contentType)
contentType
- void setContentEncoding(String contentEncoding)
contentEncoding
- void setCache(Cache cache)
cache
- cache controlWriter getWriter() throws IOException
IOException
OutputStream getOutputStream() throws IOException
IOException
void reset()
String encodeScriptUrl(String url)
url
- to encode
String getEncodeScriptUrlFunction(String name)
name
- Generated function name
Runtime getRuntime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |