org.apache.abdera.protocol.server.filters
Class CompressionFilter.CompressingResponseContextWrapper

java.lang.Object
  extended by org.apache.abdera.protocol.server.context.ResponseContextWrapper
      extended by org.apache.abdera.protocol.server.filters.CompressionFilter.CompressingResponseContextWrapper
All Implemented Interfaces:
Message, Response, ResponseContext, ProtocolConstants
Enclosing class:
CompressionFilter

public static class CompressionFilter.CompressingResponseContextWrapper
extends ResponseContextWrapper

A HttpServletResponseWrapper implementation that applies GZip or Deflate compression to response output.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response
Response.ResponseType
 
Field Summary
 
Fields inherited from class org.apache.abdera.protocol.server.context.ResponseContextWrapper
response
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Constructor Summary
CompressionFilter.CompressingResponseContextWrapper(ResponseContext response, CompressionUtil.CompressionCodec codec)
           
 
Method Summary
 void writeTo(OutputStream out)
          Write the response out to the specified OutputStream
 void writeTo(OutputStream out, Writer writer)
          Write the response out to the specified OutputStream
 
Methods inherited from class org.apache.abdera.protocol.server.context.ResponseContextWrapper
addEncodedHeader, addEncodedHeaders, addHeader, addHeaders, getAge, getAllow, getCacheControl, getContentLanguage, getContentLength, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getEntityTag, getExpires, getHeader, getHeaderNames, getHeaders, getLastModified, getLocation, getMaxAge, getNoCacheHeaders, getPrivateHeaders, getSlug, getSMaxAge, getStatus, getStatusText, getType, hasEntity, isBinary, isMustRevalidate, isNoCache, isNoStore, isNoTransform, isPrivate, isProxyRevalidate, isPublic, removeHeader, setAge, setAllow, setAllow, setBinary, setContentLanguage, setContentLength, setContentLocation, setContentType, setContentType, setEncodedHeader, setEncodedHeader, setEntityTag, setEntityTag, setEscapedHeader, setExpires, setHeader, setHeader, setLastModified, setLocation, setSlug, setStatus, setStatusText, setWriter, writeTo, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressionFilter.CompressingResponseContextWrapper

public CompressionFilter.CompressingResponseContextWrapper(ResponseContext response,
                                                           CompressionUtil.CompressionCodec codec)
Method Detail

writeTo

public void writeTo(OutputStream out,
                    Writer writer)
             throws IOException
Description copied from interface: ResponseContext
Write the response out to the specified OutputStream

Specified by:
writeTo in interface ResponseContext
Overrides:
writeTo in class ResponseContextWrapper
Throws:
IOException

writeTo

public void writeTo(OutputStream out)
             throws IOException
Description copied from interface: ResponseContext
Write the response out to the specified OutputStream

Specified by:
writeTo in interface ResponseContext
Overrides:
writeTo in class ResponseContextWrapper
Throws:
IOException


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.