Package de.xima.fc.security.access
Class ResourceMatchers
- java.lang.Object
 - 
- de.xima.fc.security.access.ResourceMatchers
 
 
- 
public final class ResourceMatchers extends Object
Factory for commonIResourceMatchers. Each resource matcher must be thread-safe and immutable.- Since:
 - 7.0.10
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ResourceMatchers() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IResourceMatcheralways()static IResourceMatchermatchingScheme(String scheme)Returns a resource matcher that matches a URI by its scheme or an URL by its protocol.static IResourceMatchernever() 
 - 
 
- 
- 
Method Detail
- 
always
public static IResourceMatcher always()
- Returns:
 - A resource matcher that matches any URL or URI.
 
 
- 
matchingScheme
public static IResourceMatcher matchingScheme(String scheme)
Returns a resource matcher that matches a URI by its scheme or an URL by its protocol. The scheme must be identical, but the comparison is made case-insensitive since in practivefile://is usually treated the same asFILE://. Anullresource never matches.- Parameters:
 scheme- Scheme to match.- Returns:
 - A resource matcher that matches when the protocol of a URL or the scheme of a URI matches the given scheme exactly (case-insensitive).
 
 
- 
never
public static IResourceMatcher never()
- Returns:
 - A resource matcher that never matches any URL or URI.
 
 
 - 
 
 -