Class CmisSessionBuilder
java.lang.Object
org.frankframework.extensions.cmis.CmisSessionBuilder
- All Implemented Interfaces:
HasApplicationContext, IScopeProvider, HasKeystore, HasTruststore
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()static CmisSessionBuildercreate()org.springframework.context.ApplicationContextstatic StringgetRepositoryInfo(org.apache.chemistry.opencmis.client.api.Session cmisSession) setAuthAlias(String string) setBindingType(CmisSessionBuilder.BindingTypes bindingType) voidsetKeystoreConfiguration(KeystoreConfiguration keystoreConfiguration) Set theKeystoreConfigurationobjectsetMaxConnections(int i) the maximum number of concurrent connections, 0 uses defaultsetOverrideEntryPointWSDL(String overrideEntryPointWSDL) setPassword(String string) setProxyAuthAlias(String string) setProxyHost(String proxyHost) setProxyPassword(String string) setProxyPort(int i) setProxyUsername(String string) setRepository(String repository) setTimeout(int i) READ_TIMEOUT timeout in MS.voidsetTruststoreConfiguration(TruststoreConfiguration truststoreConfiguration) setUsername(String string) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HasApplicationContext
getConfigurationClassLoaderMethods inherited from interface HasKeystore
createKeystoreConfiguration, getKeyManagerAlgorithm, getKeystore, getKeystoreAlias, getKeystoreAliasAuthAlias, getKeystoreAliasPassword, getKeystoreAuthAlias, getKeystorePassword, getKeystoreType, setKeyManagerAlgorithm, setKeystore, setKeystoreAlias, setKeystoreAliasAuthAlias, setKeystoreAliasPassword, setKeystoreAuthAlias, setKeystorePassword, setKeystoreTypeMethods inherited from interface HasTruststore
createTruststoreConfiguration, getTrustManagerAlgorithm, getTruststore, getTruststoreAuthAlias, getTruststorePassword, getTruststoreType, isAllowSelfSignedCertificates, isIgnoreCertificateExpiredException, isVerifyHostname, setAllowSelfSignedCertificates, setIgnoreCertificateExpiredException, setTrustManagerAlgorithm, setTruststore, setTruststoreAuthAlias, setTruststorePassword, setTruststoreType, setVerifyHostname
-
Field Details
-
OVERRIDE_WSDL_URL
- See Also:
-
OVERRIDE_WSDL_KEY
- See Also:
-
-
Constructor Details
-
CmisSessionBuilder
public CmisSessionBuilder() -
CmisSessionBuilder
-
-
Method Details
-
create
-
build
- Returns:
- a
Sessionconnected to the CMIS repository - Throws:
CmisSessionException- when the CmisSessionBuilder fails to connect to cmis repository
-
build
public CloseableCmisSession build(@Nullable String userName, @Nullable String password, @NonNull Map<String, String> headers) throws CmisSessionException- Parameters:
userName- to connect or empty when no usernamepassword-- Returns:
- a
Sessionconnected to the CMIS repository - Throws:
CmisSessionException- when the CmisSessionBuilder fails to connect to cmis repository
-
setKeystoreConfiguration
Description copied from interface:HasKeystoreSet theKeystoreConfigurationobject- Specified by:
setKeystoreConfigurationin interfaceHasKeystore
-
getKeystoreConfiguration
- Specified by:
getKeystoreConfigurationin interfaceHasKeystore
-
getTruststoreConfiguration
- Specified by:
getTruststoreConfigurationin interfaceHasTruststore
-
setTruststoreConfiguration
- Specified by:
setTruststoreConfigurationin interfaceHasTruststore
-
getRepositoryInfo
public static String getRepositoryInfo(org.apache.chemistry.opencmis.client.api.Session cmisSession) -
setOverrideEntryPointWSDL
-
setProxyHost
-
setProxyPort
-
setProxyAuthAlias
-
setProxyUsername
-
setProxyPassword
-
setUrl
-
setRepository
-
setAuthAlias
-
setUsername
-
setPassword
-
setBindingType
- Parameters:
bindingType- SeeCmisSessionBuilder.BindingTypesfor possible binding types
-
setMaxConnections
the maximum number of concurrent connections, 0 uses default -
setTimeout
READ_TIMEOUT timeout in MS. Defaults to 10000, inherited fromAbstractHttpSession.setTimeout(int). -
toString
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()- Specified by:
getApplicationContextin interfaceHasApplicationContext
-