groovyx.net.http
Class ContentEncodingRegistry

java.lang.Object
  extended by groovyx.net.http.ContentEncodingRegistry

public class ContentEncodingRegistry
extends Object

Keeps track of available content-encoding handlers.

Author:
Tom Nichols

Field Summary
protected  Map<String,ContentEncoding> availableEncoders
           
 
Constructor Summary
ContentEncodingRegistry()
           
 
Method Summary
protected  Map<String,ContentEncoding> getDefaultEncoders()
          This implementation adds a GZIPEncoding and DeflateEncoding handler to the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

availableEncoders

protected Map<String,ContentEncoding> availableEncoders
Constructor Detail

ContentEncodingRegistry

public ContentEncodingRegistry()
Method Detail

getDefaultEncoders

protected Map<String,ContentEncoding> getDefaultEncoders()
This implementation adds a GZIPEncoding and DeflateEncoding handler to the registry. Override this method to provide a different set of defaults.

Returns:
a map to content-encoding strings to ContentEncoding handlers.


Copyright © 2008-2012. All Rights Reserved.