com.sun.grizzly.http
Class CompressionFiltersProvider

java.lang.Object
  extended by com.sun.grizzly.http.CompressionFiltersProvider

public class CompressionFiltersProvider
extends Object

Provider, which is responsible for collecting compression filters.

Author:
Alexey Stashok

Method Summary
 FilterFactory getFilterFactory(String encoding)
          Get FilterFactory, which supports passed encoding, or null, if encoding is not supported by any registered filter factory.
 Collection<FilterFactory> getFilters()
          Get collection of registered compression FilterFactorys.
 FilterFactory getOutputFilter(MessageBytes encoding)
          Get FilterFactory, which supports passed encoding, or null, if encoding is not supported by any registered filter factory.
static CompressionFiltersProvider provider()
          Get CompressionFiltersProvider instance.
 void registerOutputFilter(FilterFactory filterFactory)
          Register compression FilterFactory.
 boolean supportsOutput(MessageBytes encoding)
          Returns true, if there is registered OutputFilter, which support passed encoding, or false, if encoding is not supported by any registered filter.
 boolean supportsOutput(String encoding)
          Returns true, if there is registered OutputFilter, which support passed encoding, or false, if encoding is not supported by any registered filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

provider

public static CompressionFiltersProvider provider()
Get CompressionFiltersProvider instance.

Returns:
CompressionFiltersProvider instance.

registerOutputFilter

public void registerOutputFilter(FilterFactory filterFactory)
Register compression FilterFactory.

Parameters:
filterFactory - FilterFactory.

getFilters

public Collection<FilterFactory> getFilters()
Get collection of registered compression FilterFactorys.

Returns:
collection of registered compression FilterFactorys.

supportsOutput

public boolean supportsOutput(String encoding)
Returns true, if there is registered OutputFilter, which support passed encoding, or false, if encoding is not supported by any registered filter.

Parameters:
encoding -
Returns:
true, if there is registered OutputFilter, which support passed encoding, or false, if encoding is not supported by any registered filter.

supportsOutput

public boolean supportsOutput(MessageBytes encoding)
Returns true, if there is registered OutputFilter, which support passed encoding, or false, if encoding is not supported by any registered filter.

Parameters:
encoding -
Returns:
true, if there is registered OutputFilter, which support passed encoding, or false, if encoding is not supported by any registered filter.

getFilterFactory

public FilterFactory getFilterFactory(String encoding)
Get FilterFactory, which supports passed encoding, or null, if encoding is not supported by any registered filter factory.

Parameters:
encoding -
Returns:
FilterFactory, which supports passed encoding, or null, if encoding is not supported by any registered filter factory.

getOutputFilter

public FilterFactory getOutputFilter(MessageBytes encoding)
Get FilterFactory, which supports passed encoding, or null, if encoding is not supported by any registered filter factory.

Parameters:
encoding -
Returns:
FilterFactory, which supports passed encoding, or null, if encoding is not supported by any registered filter factory.


Copyright © 2012 Oracle Corporation. All Rights Reserved.