com.googlecode.webutilities.filters.common
Interface IgnoreAcceptContext
- All Known Implementing Classes:
- AbstractFilter, CharacterEncodingFilter, ClosureCompilerFilter, CompressionFilter, ModulesFilter, ModulesFilter.RuleMapping, NewModulesFilter, NewModulesFilter.RulesMapping, ResponseCacheFilter, YUIMinFilter
public interface IgnoreAcceptContext
Interface to provide an API for filters to check if given req/res has to be ignore or processed.
AbstractFilter implements it with the help of six init parameters.
- See Also:
for the implementation
isURLAccepted
boolean isURLAccepted(String URL)
- Parameters:
URL - - request URL string without query parameters
- Returns:
- isAccepted - true if given URL has to be processed
isMIMEAccepted
boolean isMIMEAccepted(String mime)
- Parameters:
mime - - contentType of the chained response
- Returns:
- isAccepted - true if it is to be processed by this filter
isUserAgentAccepted
boolean isUserAgentAccepted(String userAgent)
- Parameters:
userAgent - - requesting user agent string
- Returns:
- isAccepted - true if request by given user agent has to be processed/filtered.
Copyright © 2011. All Rights Reserved.