public enum TrivialRequestMatcher extends 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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean matches(javax.servlet.ServletRequest req)
RequestMatcher
matches
in interface RequestMatcher
Copyright © 2012-2013. All Rights Reserved.