public enum TrivialRequestMatcher extends java.lang.Enum<TrivialRequestMatcher> implements RequestMatcher
| Enum Constant and Description |
|---|
ANYTHING
A
RequestMatcher that matches anything. |
NOTHING
A
RequestMatcher that matches nothing. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(javax.servlet.ServletRequest req)
Attempts to match the given request.
|
static TrivialRequestMatcher |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrivialRequestMatcher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrivialRequestMatcher ANYTHING
RequestMatcher that matches anything.public static final TrivialRequestMatcher NOTHING
RequestMatcher that matches nothing.public static TrivialRequestMatcher[] values()
for (TrivialRequestMatcher c : TrivialRequestMatcher.values()) System.out.println(c);
public static TrivialRequestMatcher valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean matches(javax.servlet.ServletRequest req)
RequestMatchermatches in interface RequestMatcherCopyright © 2012-2013 IP SQUARE. All Rights Reserved.