Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.services.assets
Class CompressionAnalyzerImpl

    java.lang.Object
      org.apache.tapestry5.internal.services.assets.CompressionAnalyzerImpl

All Implemented Interfaces:
  CompressionAnalyzer

    public class CompressionAnalyzerImpl

extends java.lang.Object
implements CompressionAnalyzer

Constructor Summary
`CompressionAnalyzerImpl(java.util.Map<java.lang.String,java.lang.Boolean> configuration)`

Method Summary
`boolean` | `isCompressable(java.lang.String contentType)` For a given MIME type, is the content compressable via GZip?

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CompressionAnalyzerImpl

    public CompressionAnalyzerImpl(java.util.Map<java.lang.String,java.lang.Boolean> configuration)

Method Detail

### isCompressable

    public boolean isCompressable(java.lang.String contentType)

  Description copied from interface: `CompressionAnalyzer`
  For a given MIME type, is the content compressable via GZip?

  Specified by:
    `isCompressable` in interface `CompressionAnalyzer`
  Parameters:
    `contentType` - MIME content type, possibly included attributes such as encoding type
  Returns:
    true if the content is not "naturally" compressed

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.