Package com.symphony.oss.allegro.api
Class AllegroApi.AbstractBuilder<T extends AllegroApi.AbstractBuilder<T,B>,B extends IAllegroApi>
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T,B>
-
- com.symphony.oss.allegro.api.AllegroApi.AbstractBuilder<T,B>
-
- Type Parameters:
T
- The type of the concrete BuilderB
- 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 Summary
Fields Modifier and Type Field Description protected com.symphony.oss.models.fundamental.crypto.cipher.ICipherSuite
cipherSuite_
protected com.symphony.oss.models.fundmental.canon.CipherSuiteId
cipherSuiteId_
protected org.apache.http.client.CookieStore
cookieStore_
protected List<org.symphonyoss.s2.canon.runtime.IEntityFactory<?,?,?>>
factories_
protected org.apache.http.impl.client.CloseableHttpClient
httpclient_
protected URL
objectStoreUrl_
protected URL
podUrl_
protected com.symphony.oss.models.fundmental.canon.PemPrivateKey
rsaPemCredential_
protected List<String>
trustedCertResources_
protected List<X509Certificate>
trustedCerts_
protected String
userName_
-
Constructor Summary
Constructors Constructor Description AbstractBuilder(Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
validate(org.symphonyoss.s2.common.fault.FaultAccumulator faultAccumulator)
T
withCipherSuite(String cipherSuiteId)
T
withFactories(org.symphonyoss.s2.canon.runtime.IEntityFactory<?,?,?>... factories)
T
withObjectStoreUrl(String objectStoreUrl)
T
withObjectStoreUrl(URL objectStoreUrl)
T
withPodUrl(String podUrl)
T
withPodUrl(URL podUrl)
T
withRsaCredential(PrivateKey rsaCredential)
T
withRsaPemCredential(com.symphony.oss.models.fundmental.canon.PemPrivateKey rsaPemCredential)
T
withRsaPemCredential(String rsaPemCredential)
T
withRsaPemCredentialFile(String rsaPemCredentialFile)
T
withTrustAllSslCerts()
T
withTrustedSslCertResources(String... resourceNames)
T
withTrustSelfSignedSslCerts()
T
withUserName(String serviceAccountName)
-
-
-
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_
-
trustedCerts_
protected List<X509Certificate> trustedCerts_
-
-
Method Detail
-
withRsaPemCredential
public T withRsaPemCredential(com.symphony.oss.models.fundmental.canon.PemPrivateKey rsaPemCredential)
-
withRsaCredential
public T withRsaCredential(PrivateKey rsaCredential)
-
withTrustAllSslCerts
public T withTrustAllSslCerts()
-
withTrustSelfSignedSslCerts
public T withTrustSelfSignedSslCerts()
-
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 classorg.symphonyoss.s2.common.fluent.BaseAbstractBuilder<T extends AllegroApi.AbstractBuilder<T,B>,B extends IAllegroApi>
-
-