com.plumtree.uiinfrastructure.web
Class XPCompressionResponse
java.lang.Object
XPResponse
com.plumtree.uiinfrastructure.web.XPCompressionResponse
public class XPCompressionResponse
- extends XPResponse
- Author:
- scottc
HttpCompressionResponseWrapper wraps the response object in the filter chain.
It wraps the response output stream with a (possibly) compressed output stream.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPCompressionResponse
public XPCompressionResponse(IXPResponse _response,
IHttpCompressionUtil compressionUtil)
GetOutputStream
public XPOutputStream GetOutputStream()
AddHeader
public void AddHeader(java.lang.String name,
java.lang.String value)
- Detects setting of certain headers and attempts to disable compression for some.
Disabling compressoin will not work if the response is committed which happens after
more than HttpCompressionResponseStream.bufferSize bytes have been written to the
response body.
Best practice as usual for HttpServlets is to set all headers before writing any bytes
to the response.
SetContentType
public void SetContentType(java.lang.String value)
Flush
public void Flush()
Write
public void Write(char c)
Write
public void Write(java.lang.Object o)
Write
public void Write(java.lang.String s)
Write
public void Write(char[] s)
WriteLine
public void WriteLine(char c)
WriteLine
public void WriteLine(java.lang.Object o)
WriteLine
public void WriteLine(java.lang.String s)
WriteLine
public void WriteLine(char[] s)