Class RequestMatchers
java.lang.Object
com.codename1.backend.security.RequestMatchers
Combines matchers: all of them, any of them, or not one.
RequestMatcher writes = RequestMatchers.allOf(
AntPathRequestMatcher.antMatcher("/api/**"),
RequestMatchers.not(RequestMatchers.method("GET")));
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestMatcherallOf(RequestMatcher... matchers) Matches when every one ofmatchersdoes; always, given none.static RequestMatcheranyOf(RequestMatcher... matchers) Matches when any ofmatchersdoes; never, given none.static RequestMatcherMatches requests carrying a header; with a value given, that value.static RequestMatcherMatches requests of one method, written as HTTP writes it:DELETE.static RequestMatchernot(RequestMatcher matcher) Matches whenmatcherdoes not.
-
Method Details
-
anyOf
Matches when any ofmatchersdoes; never, given none. -
allOf
Matches when every one ofmatchersdoes; always, given none. -
not
Matches whenmatcherdoes not. -
method
Matches requests of one method, written as HTTP writes it:DELETE. -
header
Matches requests carrying a header; with a value given, that value.
-