com.atlassian.gzipfilter.selector
Class PatternMatcher

java.lang.Object
  extended by com.atlassian.gzipfilter.selector.PatternMatcher

public class PatternMatcher
extends Object

This class may be called by multiple threads - it is internally synchronised.


Constructor Summary
PatternMatcher()
           
 
Method Summary
 boolean matches(String contentType, String mimeTypesToGzip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternMatcher

public PatternMatcher()
Method Detail

matches

public boolean matches(String contentType,
                       String mimeTypesToGzip)
Parameters:
contentType - The content type to match
mimeTypesToGzip - A comma separated list of regular expressions to match against
Returns:
True if the content type matches a least one of the regular expressions


Copyright © 2015 Atlassian. All rights reserved.