public class BufferedResponse extends Object implements org.springframework.extensions.webscripts.WrappingWebScriptResponse
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
BufferedResponse(org.springframework.extensions.webscripts.WebScriptResponse res,
int bufferSize)
Construct
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value) |
String |
encodeResourceUrl(String url) |
String |
encodeScriptUrl(String url) |
String |
getEncodeResourceUrlFunction(String name) |
String |
getEncodeScriptUrlFunction(String name) |
org.springframework.extensions.webscripts.WebScriptResponse |
getNext() |
OutputStream |
getOutputStream() |
org.springframework.extensions.webscripts.Runtime |
getRuntime() |
Writer |
getWriter() |
void |
reset() |
void |
setCache(org.springframework.extensions.webscripts.Cache cache) |
void |
setContentEncoding(String contentEncoding) |
void |
setContentType(String contentType) |
void |
setHeader(String name,
String value) |
void |
setStatus(int status) |
void |
writeResponse()
Write buffered response to underlying response
|
public BufferedResponse(org.springframework.extensions.webscripts.WebScriptResponse res, int bufferSize)
res
- WebScriptResponsebufferSize
- intpublic org.springframework.extensions.webscripts.WebScriptResponse getNext()
getNext
in interface org.springframework.extensions.webscripts.WrappingWebScriptResponse
public void addHeader(String name, String value)
addHeader
in interface org.springframework.extensions.webscripts.WebScriptResponse
public String encodeScriptUrl(String url)
encodeScriptUrl
in interface org.springframework.extensions.webscripts.WebScriptResponse
public String getEncodeScriptUrlFunction(String name)
getEncodeScriptUrlFunction
in interface org.springframework.extensions.webscripts.WebScriptResponse
public String encodeResourceUrl(String url)
encodeResourceUrl
in interface org.springframework.extensions.webscripts.WebScriptResponse
public String getEncodeResourceUrlFunction(String name)
getEncodeResourceUrlFunction
in interface org.springframework.extensions.webscripts.WebScriptResponse
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface org.springframework.extensions.webscripts.WebScriptResponse
IOException
public org.springframework.extensions.webscripts.Runtime getRuntime()
getRuntime
in interface org.springframework.extensions.webscripts.WebScriptResponse
public Writer getWriter() throws IOException
getWriter
in interface org.springframework.extensions.webscripts.WebScriptResponse
IOException
public void reset()
reset
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void setCache(org.springframework.extensions.webscripts.Cache cache)
setCache
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void setContentType(String contentType)
setContentType
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void setContentEncoding(String contentEncoding)
setContentEncoding
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void setHeader(String name, String value)
setHeader
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void setStatus(int status)
setStatus
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void writeResponse()
Copyright © 2005–2017 Alfresco Software. All rights reserved.