Class DefaultServiceEndpoint

  • All Implemented Interfaces:
    ServiceEndpoint

    public class DefaultServiceEndpoint
    extends java.lang.Object
    implements 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

      Constructors 
      Constructor Description
      DefaultServiceEndpoint​(java.lang.String name, java.lang.String baseUrl)  
      DefaultServiceEndpoint​(java.lang.String name, java.lang.String baseUrl, boolean isSecure)  
      DefaultServiceEndpoint​(java.lang.String name, java.lang.String baseUrl, boolean isSecure, boolean useDefaultSslSocketFactory)  
      DefaultServiceEndpoint​(java.lang.String name, java.lang.String baseUrl, java.util.Map<java.lang.String,​java.lang.String> config)  
      DefaultServiceEndpoint​(java.lang.String name, java.lang.String baseUrl, java.util.Map<java.lang.String,​java.lang.String> config, boolean isSecure, boolean useDefaultSslSocketFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBaseUrl()
      Base API url
      java.util.Map<java.lang.String,​java.lang.String> getConfig()
      Misc.
      java.lang.String getName()
      Name of the service
      boolean isSecure()
      Indicates whether the certificate/host verification is desired or not
      boolean isUseDefaultSslSocketFactory()
      Indicates whether to use system default or wire up the app supplied truststore and keystore.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultServiceEndpoint

        public DefaultServiceEndpoint​(@Nonnull
                                      java.lang.String name,
                                      @Nonnull
                                      java.lang.String baseUrl)
      • DefaultServiceEndpoint

        public DefaultServiceEndpoint​(@Nonnull
                                      java.lang.String name,
                                      @Nonnull
                                      java.lang.String baseUrl,
                                      boolean isSecure)
      • DefaultServiceEndpoint

        public DefaultServiceEndpoint​(@Nonnull
                                      java.lang.String name,
                                      @Nonnull
                                      java.lang.String baseUrl,
                                      boolean isSecure,
                                      boolean useDefaultSslSocketFactory)
      • DefaultServiceEndpoint

        public DefaultServiceEndpoint​(@Nonnull
                                      java.lang.String name,
                                      @Nonnull
                                      java.lang.String baseUrl,
                                      @Nonnull
                                      java.util.Map<java.lang.String,​java.lang.String> config)
      • DefaultServiceEndpoint

        public DefaultServiceEndpoint​(@Nonnull
                                      java.lang.String name,
                                      @Nonnull
                                      java.lang.String baseUrl,
                                      @Nonnull
                                      java.util.Map<java.lang.String,​java.lang.String> config,
                                      boolean isSecure,
                                      boolean useDefaultSslSocketFactory)
    • Method Detail

      • getConfig

        @Nonnull
        public java.util.Map<java.lang.String,​java.lang.String> getConfig()
        Description copied from interface: ServiceEndpoint
        Misc. config necessary for the service client.
        Specified by:
        getConfig in interface ServiceEndpoint
      • isSecure

        public boolean isSecure()
        Description copied from interface: ServiceEndpoint
        Indicates whether the certificate/host verification is desired or not
        Specified by:
        isSecure in interface ServiceEndpoint
      • isUseDefaultSslSocketFactory

        public boolean isUseDefaultSslSocketFactory()
        Description copied from interface: ServiceEndpoint
        Indicates whether to use system default or wire up the app supplied truststore and keystore.
        Specified by:
        isUseDefaultSslSocketFactory in interface ServiceEndpoint