@@ -0,0 +1,1755 @@
+/*%0A * Copyright 2002-2018 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.springframework.security.oauth2.client.web.reactive.function.client;%0A%0Aimport org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository;%0Aimport org.springframework.web.reactive.function.client.WebClient;%0A%0Aimport java.util.function.Consumer;%0A%0A/**%0A * @author Rob Winch%0A * @since 5.1%0A */%0Apublic final class OAuth2ExchangeFilterFunctions %7B%0A%0A%09/**%0A%09 * Configures the WebClient for OAuth2 support in a servlet environment.%0A%09 * @param repository the repository to use%0A%09 * @return the %7B@link Consumer%7D to configure the WebClient%0A%09 */%0A%09public static Consumer%3CWebClient.Builder%3E oauth2ServletConfig(OAuth2AuthorizedClientRepository repository) %7B%0A%09%09return new ServletOAuth2AuthorizedClientExchangeFilterFunction(repository)%0A%09%09%09%09.oauth2Configuration();%0A%09%7D%0A%0A%09/**%0A%09 * Configures the WebClient for OAuth2 support in a servlet environment.%0A%09 * @return the %7B@link Consumer%7D to configure the WebClient%0A%09 */%0A%09public static Consumer%3CWebClient.Builder%3E oauth2ServletConfig() %7B%0A%09%09return new ServletOAuth2AuthorizedClientExchangeFilterFunction()%0A%09%09%09%09.oauth2Configuration();%0A%09%7D%0A%0A%09private OAuth2ExchangeFilterFunctions() %7B%7D%0A%7D%0A

Add static methods for ServletOAuth2AuthorizedClientExchangeFilterFunction