com.atlassian.gzipfilter.selector
Class MimeTypeBasedSelector

java.lang.Object
  extended by com.atlassian.gzipfilter.selector.MimeTypeBasedSelector
All Implemented Interfaces:
GzipCompatibilitySelector

public class MimeTypeBasedSelector
extends Object
implements GzipCompatibilitySelector


Constructor Summary
MimeTypeBasedSelector(Set<String> compressableMimeTypes)
           
 
Method Summary
 boolean shouldGzip()
           
 boolean shouldGzip(String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeTypeBasedSelector

public MimeTypeBasedSelector(Set<String> compressableMimeTypes)
Method Detail

shouldGzip

public boolean shouldGzip(String contentType)
Specified by:
shouldGzip in interface GzipCompatibilitySelector

shouldGzip

public boolean shouldGzip()
Specified by:
shouldGzip in interface GzipCompatibilitySelector


Copyright © 2015 Atlassian. All rights reserved.