Class AllegroApi.AbstractBuilder<T extends AllegroApi.AbstractBuilder<T,​B>,​B extends IAllegroApi>

  • Type Parameters:
    T - The type of the concrete Builder
    B - The type of the built class, some subclass of AllegroApi
    All Implemented Interfaces:
    org.symphonyoss.s2.common.fluent.IBuilder<T,​B>, org.symphonyoss.s2.common.fluent.IFluent<T>
    Direct Known Subclasses:
    AllegroApi.Builder
    Enclosing class:
    AllegroApi

    protected abstract static class AllegroApi.AbstractBuilder<T extends AllegroApi.AbstractBuilder<T,​B>,​B extends IAllegroApi>
    extends org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,​B>
    The builder implementation. This is implemented as an abstract class to allow for sub-classing in future. Any sub-class of AllegroApi would need to implement its own Abstract sub-class of this class and then a concrete Builder class which is itself a sub-class of that.
    Author:
    Bruce Skingle
    • Field Detail

      • cipherSuiteId_

        protected com.symphony.oss.models.fundmental.canon.CipherSuiteId cipherSuiteId_
      • cipherSuite_

        protected com.symphony.oss.models.fundamental.crypto.cipher.ICipherSuite cipherSuite_
      • rsaPemCredential_

        protected com.symphony.oss.models.fundmental.canon.PemPrivateKey rsaPemCredential_
      • httpclient_

        protected org.apache.http.impl.client.CloseableHttpClient httpclient_
      • podUrl_

        protected URL podUrl_
      • objectStoreUrl_

        protected URL objectStoreUrl_
      • userName_

        protected String userName_
      • cookieStore_

        protected org.apache.http.client.CookieStore cookieStore_
      • factories_

        protected List<org.symphonyoss.s2.canon.runtime.IEntityFactory<?,​?,​?>> factories_
      • trustedCertResources_

        protected List<String> trustedCertResources_
    • Constructor Detail

      • AbstractBuilder

        public AbstractBuilder​(Class<T> type)
    • Method Detail

      • withUserName

        public T withUserName​(String serviceAccountName)
      • withPodUrl

        public T withPodUrl​(URL podUrl)
      • withPodUrl

        public T withPodUrl​(String podUrl)
      • withObjectStoreUrl

        public T withObjectStoreUrl​(URL objectStoreUrl)
      • withObjectStoreUrl

        public T withObjectStoreUrl​(String objectStoreUrl)
      • withCipherSuite

        public T withCipherSuite​(String cipherSuiteId)
      • withRsaPemCredential

        public T withRsaPemCredential​(com.symphony.oss.models.fundmental.canon.PemPrivateKey rsaPemCredential)
      • withRsaPemCredential

        public T withRsaPemCredential​(String rsaPemCredential)
      • withRsaCredential

        public T withRsaCredential​(PrivateKey rsaCredential)
      • withRsaPemCredentialFile

        public T withRsaPemCredentialFile​(String rsaPemCredentialFile)
      • withTrustAllSslCerts

        public T withTrustAllSslCerts()
      • withTrustSelfSignedSslCerts

        public T withTrustSelfSignedSslCerts()
      • withTrustedSslCertResources

        public T withTrustedSslCertResources​(String... resourceNames)
      • withFactories

        public T withFactories​(org.symphonyoss.s2.canon.runtime.IEntityFactory<?,​?,​?>... factories)
      • validate

        protected void validate​(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)
        Overrides:
        validate in class org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T extends AllegroApi.AbstractBuilder<T,​B>,​B extends IAllegroApi>