Package fr.gouv.vitam.common.client
Class VitamContext
java.lang.Object
fr.gouv.vitam.common.client.VitamContext
Defines commons client parameters for vitam external rest API
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the access contractGets the application session idReturns a vitam context parameters as headersGets the personnal certificate.Gets the tenant idint
hashCode()
setAccessContract
(String accessContract) Sets the access contractsetApplicationSessionId
(String applicationSessionId) Sets the application session idsetPersonalCertificate
(String personalCertificate) Sets personalCertificatesetTenantId
(Integer tenantId) Sets the tenant idtoString()
-
Constructor Details
-
VitamContext
- Parameters:
tenantId
- the tenant id
-
-
Method Details
-
getTenantId
Gets the tenant id- Returns:
- the tenant id
-
setTenantId
Sets the tenant id- Parameters:
tenantId
- the tenant id to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getAccessContract
Gets the access contract- Returns:
- the access contract
-
setAccessContract
Sets the access contract- Parameters:
accessContract
- the access contract to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getApplicationSessionId
Gets the application session id- Returns:
- the application session id
-
setApplicationSessionId
Sets the application session id- Parameters:
applicationSessionId
- the application session id to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getPersonalCertificate
Gets the personnal certificate.- Returns:
-
setPersonalCertificate
Sets personalCertificate- Parameters:
personalCertificate
- the personalCertificate to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getHeaders
Returns a vitam context parameters as headers- Returns:
- header-name/value map of vitam context parameters
-
toString
-
equals
-
hashCode
public int hashCode()
-