Class AbstractMatcher
- java.lang.Object
-
- org.mapfish.print.processor.http.matcher.AbstractMatcher
-
- All Implemented Interfaces:
ConfigurationObject
,URIMatcher
- Direct Known Subclasses:
AcceptAllMatcher
,HostMatcher
public abstract class AbstractMatcher extends java.lang.Object implements URIMatcher
Base matcher for checking that URIs are authorized or denied.
-
-
Constructor Summary
Constructors Constructor Description AbstractMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReject()
If true and the matcher accepts the uri, the request needs to be rejected.void
setReject(boolean reject)
Reverses the matcher.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mapfish.print.config.ConfigurationObject
validate
-
Methods inherited from interface org.mapfish.print.processor.http.matcher.URIMatcher
matches
-
-
-
-
Method Detail
-
isReject
public final boolean isReject()
Description copied from interface:URIMatcher
If true and the matcher accepts the uri, the request needs to be rejected.- Specified by:
isReject
in interfaceURIMatcher
-
setReject
public final void setReject(boolean reject)
Reverses the matcher. Instead of accepting an URI when the URI matches, the URI is rejected.- Parameters:
reject
- Should reject?
-
-