All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.antoniomacri.reactivegwt.proxy.HasProxySettings Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2015 Blue Esoteric Web Development, LLC
 * 
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.github.antoniomacri.reactivegwt.proxy; import com.github.antoniomacri.reactivegwt.proxy.auth.ServiceAuthenticator; import java.net.CookieManager; import java.net.http.HttpClient; import java.time.InstantSource; import java.util.Map; import java.util.concurrent.Executor; /** * Interface to specify an object that will provide for requested Proxy * Settings. Custom ProxySettings objects may be utilized as of version 0.5 to * create reusable settings objects that are customized. * * @author Preethum * @version 0.6 * @since 0.5 */ public interface HasProxySettings { CookieManager getCookieManager(); /** * @since 0.6 */ Map getCustomHeaders(); String getModuleBaseUrl(); /** * @since 0.6 */ String getOAuth2IdToken(); /** * @since 0.6 */ String getOAuthBearerToken(); String getServiceName(); RpcPolicyFinder getPolicyFinder(); String getRemoteServiceRelativePath(); ServiceAuthenticator getServiceAuthenticator(); boolean isWaitForInvocation(); HasProxySettings setCookieManager(CookieManager cookieManager); /** * @since 0.6 */ HasProxySettings setCustomHeaders(Map headers); HasProxySettings setModuleBaseUrl(String serverBaseUrl); /** * @since 0.6 */ HasProxySettings setOAuth2IdToken(String token); /** * @since 0.6 */ HasProxySettings setOAuthBearerToken(String bearerToken); HasProxySettings setRemoteServiceRelativePath(String remoteServiceRelativePath); HasProxySettings setServiceAuthenticator(ServiceAuthenticator authenticator); HasProxySettings setWaitForInvocation(boolean waitForInvocation); HasProxySettings setExecutor(Executor executor); Executor getExecutor(); int getSerializationStreamVersion(); HasProxySettings setSerializationStreamVersion(int serializationStreamVersion); InstantSource getInstantSource(); HasProxySettings setInstantSource(InstantSource instantSource); int getSerializationPolicyFetchMinIntervalMillis(); HasProxySettings setSerializationPolicyFetchMinIntervalMillis(int serializationPolicyFetchMinIntervalMillis); HttpClient getHttpClient(); HasProxySettings setHttpClient(HttpClient httpClient); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy