Package com.netflix.spinnaker.config
Class DefaultServiceEndpoint
java.lang.Object
com.netflix.spinnaker.config.DefaultServiceEndpoint
- All Implemented Interfaces:
ServiceEndpoint
Represents a service endpoint URL and name.
If a secure client is constructed using this type and not set to use default ssl factory, ssl
socket factory will be set with supplied trust and keystores, See
com.netflix.spinnaker.okhttp.OkHttpClientConfigurationProperties.
If a client is constructed using this type and is insecure, trust and keystores will be set to empty and host name verification will be turned off.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultServiceEndpoint(String name, String baseUrl) DefaultServiceEndpoint(String name, String baseUrl, boolean isSecure) DefaultServiceEndpoint(String name, String baseUrl, boolean isSecure, boolean useDefaultSslSocketFactory) DefaultServiceEndpoint(String name, String baseUrl, Map<String, String> config, boolean isSecure, boolean useDefaultSslSocketFactory) -
Method Summary
-
Constructor Details
-
DefaultServiceEndpoint
-
DefaultServiceEndpoint
-
DefaultServiceEndpoint
-
DefaultServiceEndpoint
-
DefaultServiceEndpoint
-
-
Method Details
-
getName
Description copied from interface:ServiceEndpointName of the service- Specified by:
getNamein interfaceServiceEndpoint
-
getBaseUrl
Description copied from interface:ServiceEndpointBase API url- Specified by:
getBaseUrlin interfaceServiceEndpoint
-
getConfig
Description copied from interface:ServiceEndpointMisc. config necessary for the service client.- Specified by:
getConfigin interfaceServiceEndpoint
-
isSecure
public boolean isSecure()Description copied from interface:ServiceEndpointIndicates whether the certificate/host verification is desired or not- Specified by:
isSecurein interfaceServiceEndpoint
-
isUseDefaultSslSocketFactory
public boolean isUseDefaultSslSocketFactory()Description copied from interface:ServiceEndpointIndicates whether to use system default or wire up the app supplied truststore and keystore.- Specified by:
isUseDefaultSslSocketFactoryin interfaceServiceEndpoint
-