com.plumtree.uiinfrastructure.web
Class XPCompressionResponse

java.lang.Object
  extended by XPResponse
      extended by 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.

Constructor Summary
XPCompressionResponse(IXPResponse _response, IHttpCompressionUtil compressionUtil)
           
 
Method Summary
 void AddHeader(java.lang.String name, java.lang.String value)
          Detects setting of certain headers and attempts to disable compression for some.
 void Flush()
           
 XPOutputStream GetOutputStream()
           
 void SetContentType(java.lang.String value)
           
 void Write(char c)
           
 void Write(char[] s)
           
 void Write(java.lang.Object o)
           
 void Write(java.lang.String s)
           
 void WriteLine(char c)
           
 void WriteLine(char[] s)
           
 void WriteLine(java.lang.Object o)
           
 void WriteLine(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPCompressionResponse

public XPCompressionResponse(IXPResponse _response,
                             IHttpCompressionUtil compressionUtil)
Method Detail

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)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.