public interface WebScriptResponse
| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value)
Adds a response header with the given name and value.
|
String |
encodeResourceUrl(String url)
Encode a resource URL
Note: Some Web Script Runtime environments (e.g.
|
String |
encodeScriptUrl(String url)
Encode a script URL
Note: Some Web Script Runtime environments (e.g.
|
String |
getEncodeResourceUrlFunction(String name)
Return a client side javascript function to build resource urls for this service
|
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
|
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
void setStatus(int status)
status - intvoid setHeader(String name, String value)
name - header namevalue - header valuevoid addHeader(String name, String value)
name - header namevalue - header valuevoid setContentType(String contentType)
contentType - Stringvoid setContentEncoding(String contentEncoding)
contentEncoding - Stringvoid setCache(Cache cache)
cache - cache controlWriter getWriter() throws IOException
IOExceptionOutputStream getOutputStream() throws IOException
IOExceptionvoid reset()
String encodeScriptUrl(String url)
url - to encodeString encodeResourceUrl(String url)
url - to encodeString getEncodeScriptUrlFunction(String name)
name - Generated function nameString getEncodeResourceUrlFunction(String name)
name - Generated function nameRuntime getRuntime()
Copyright © 2005–2015 Alfresco Software. All rights reserved.