/** * Disables authorization. * @return the {@link Access} to continue configuring */ @Override public Access anyExchange() { Access result = super.anyExchange(); this.anyExchangeRegistered = true; return result; }
/** * Maps any request. * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T anyExchange() { return matcher(ServerWebExchangeMatchers.anyExchange()); }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances. * * @param method the {@link HttpMethod} to use for any * {@link HttpMethod}. * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(HttpMethod method) { return pathMatchers(method, new String[] { "/**" }); }
/** * Associates a {@link ServerWebExchangeMatcher} instances * * @param matcher the {@link ServerWebExchangeMatcher} instance * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ private T matcher(ServerWebExchangeMatcher matcher) { return registerMatcher(matcher); } }
/** * Associates a list of {@link ServerWebExchangeMatcher} instances * * @param matchers the {@link ServerWebExchangeMatcher} instances * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T matchers(ServerWebExchangeMatcher... matchers) { return registerMatcher(new OrServerWebExchangeMatcher(matchers)); }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances that do not care which {@link HttpMethod} is used. * * @param antPatterns the ant patterns to create * {@link PathPatternParserServerWebExchangeMatcher} from * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(String... antPatterns) { return matcher(ServerWebExchangeMatchers.pathMatchers(antPatterns)); }
/** * Associates a {@link ServerWebExchangeMatcher} instances * * @param matcher the {@link ServerWebExchangeMatcher} instance * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ private T matcher(ServerWebExchangeMatcher matcher) { return registerMatcher(matcher); } }
/** * Disables authorization. * @return the {@link Access} to continue configuring */ @Override public Access anyExchange() { Access result = super.anyExchange(); this.anyExchangeRegistered = true; return result; }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances. * * @param method the {@link HttpMethod} to use for any * {@link HttpMethod}. * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(HttpMethod method) { return pathMatchers(method, new String[] { "/**" }); }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances. * * @param method the {@link HttpMethod} to use or {@code null} for any * {@link HttpMethod}. * @param antPatterns the ant patterns to create. If {@code null} or empty, then matches on nothing. * {@link PathPatternParserServerWebExchangeMatcher} from * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(HttpMethod method, String... antPatterns) { return matcher(ServerWebExchangeMatchers.pathMatchers(method, antPatterns)); }
/** * Associates a list of {@link ServerWebExchangeMatcher} instances * * @param matchers the {@link ServerWebExchangeMatcher} instances * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T matchers(ServerWebExchangeMatcher... matchers) { return registerMatcher(new OrServerWebExchangeMatcher(matchers)); }
/** * Disables authorization. * @return the {@link Access} to continue configuring */ @Override public Access anyExchange() { Access result = super.anyExchange(); this.anyExchangeRegistered = true; return result; }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances. * * @param method the {@link HttpMethod} to use for any * {@link HttpMethod}. * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(HttpMethod method) { return pathMatchers(method, new String[] { "/**" }); }
/** * Maps any request. * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T anyExchange() { return matcher(ServerWebExchangeMatchers.anyExchange()); }
/** * Associates a {@link ServerWebExchangeMatcher} instances * * @param matcher the {@link ServerWebExchangeMatcher} instance * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ private T matcher(ServerWebExchangeMatcher matcher) { return registerMatcher(matcher); } }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances that do not care which {@link HttpMethod} is used. * * @param antPatterns the ant patterns to create * {@link PathPatternParserServerWebExchangeMatcher} from * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(String... antPatterns) { return matcher(ServerWebExchangeMatchers.pathMatchers(antPatterns)); }
/** * Associates a list of {@link ServerWebExchangeMatcher} instances * * @param matchers the {@link ServerWebExchangeMatcher} instances * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T matchers(ServerWebExchangeMatcher... matchers) { return registerMatcher(new OrServerWebExchangeMatcher(matchers)); }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances. * * @param method the {@link HttpMethod} to use or {@code null} for any * {@link HttpMethod}. * @param antPatterns the ant patterns to create. If {@code null} or empty, then matches on nothing. * {@link PathPatternParserServerWebExchangeMatcher} from * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(HttpMethod method, String... antPatterns) { return matcher(ServerWebExchangeMatchers.pathMatchers(method, antPatterns)); }
/** * Maps any request. * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T anyExchange() { return matcher(ServerWebExchangeMatchers.anyExchange()); }
/** * Maps a {@link List} of * {@link PathPatternParserServerWebExchangeMatcher} * instances that do not care which {@link HttpMethod} is used. * * @param antPatterns the ant patterns to create * {@link PathPatternParserServerWebExchangeMatcher} from * * @return the object that is chained after creating the {@link ServerWebExchangeMatcher} */ public T pathMatchers(String... antPatterns) { return matcher(ServerWebExchangeMatchers.pathMatchers(antPatterns)); }