public class BufferedResponse
extends java.lang.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(java.lang.String name,
java.lang.String value) |
java.lang.String |
encodeResourceUrl(java.lang.String url) |
java.lang.String |
encodeScriptUrl(java.lang.String url) |
java.lang.String |
getEncodeResourceUrlFunction(java.lang.String name) |
java.lang.String |
getEncodeScriptUrlFunction(java.lang.String name) |
org.springframework.extensions.webscripts.WebScriptResponse |
getNext() |
java.io.OutputStream |
getOutputStream() |
org.springframework.extensions.webscripts.Runtime |
getRuntime() |
java.io.Writer |
getWriter() |
void |
reset() |
void |
setCache(org.springframework.extensions.webscripts.Cache cache) |
void |
setContentEncoding(java.lang.String contentEncoding) |
void |
setContentType(java.lang.String contentType) |
void |
setHeader(java.lang.String name,
java.lang.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
- bufferSize
- public org.springframework.extensions.webscripts.WebScriptResponse getNext()
getNext
in interface org.springframework.extensions.webscripts.WrappingWebScriptResponse
public void addHeader(java.lang.String name, java.lang.String value)
addHeader
in interface org.springframework.extensions.webscripts.WebScriptResponse
public java.lang.String encodeScriptUrl(java.lang.String url)
encodeScriptUrl
in interface org.springframework.extensions.webscripts.WebScriptResponse
public java.lang.String getEncodeScriptUrlFunction(java.lang.String name)
getEncodeScriptUrlFunction
in interface org.springframework.extensions.webscripts.WebScriptResponse
public java.lang.String encodeResourceUrl(java.lang.String url)
encodeResourceUrl
in interface org.springframework.extensions.webscripts.WebScriptResponse
public java.lang.String getEncodeResourceUrlFunction(java.lang.String name)
getEncodeResourceUrlFunction
in interface org.springframework.extensions.webscripts.WebScriptResponse
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface org.springframework.extensions.webscripts.WebScriptResponse
java.io.IOException
public org.springframework.extensions.webscripts.Runtime getRuntime()
getRuntime
in interface org.springframework.extensions.webscripts.WebScriptResponse
public java.io.Writer getWriter() throws java.io.IOException
getWriter
in interface org.springframework.extensions.webscripts.WebScriptResponse
java.io.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(java.lang.String contentType)
setContentType
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void setContentEncoding(java.lang.String contentEncoding)
setContentEncoding
in interface org.springframework.extensions.webscripts.WebScriptResponse
public void setHeader(java.lang.String name, java.lang.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 - 2013 Alfresco Software, Inc. All Rights Reserved.