Package fr.gouv.vitam.common.client
Class VitamContext
- java.lang.Object
-
- fr.gouv.vitam.common.client.VitamContext
-
public final class VitamContext extends java.lang.Object
Defines commons client parameters for vitam external rest API
-
-
Constructor Summary
Constructors Constructor Description VitamContext(java.lang.Integer tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAccessContract()
Gets the access contractjava.lang.String
getApplicationSessionId()
Gets the application session idjavax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object>
getHeaders()
Returns a vitam context parameters as headersjava.lang.String
getPersonalCertificate()
Gets the personnal certificate.java.lang.Integer
getTenantId()
Gets the tenant idint
hashCode()
VitamContext
setAccessContract(java.lang.String accessContract)
Sets the access contractVitamContext
setApplicationSessionId(java.lang.String applicationSessionId)
Sets the application session idVitamContext
setPersonalCertificate(java.lang.String personalCertificate)
Sets personalCertificateVitamContext
setTenantId(java.lang.Integer tenantId)
Sets the tenant idjava.lang.String
toString()
-
-
-
Method Detail
-
getTenantId
public java.lang.Integer getTenantId()
Gets the tenant id- Returns:
- the tenant id
-
setTenantId
public VitamContext setTenantId(java.lang.Integer tenantId)
Sets the tenant id- Parameters:
tenantId
- the tenant id to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getAccessContract
public java.lang.String getAccessContract()
Gets the access contract- Returns:
- the access contract
-
setAccessContract
public VitamContext setAccessContract(java.lang.String accessContract)
Sets the access contract- Parameters:
accessContract
- the access contract to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getApplicationSessionId
public java.lang.String getApplicationSessionId()
Gets the application session id- Returns:
- the application session id
-
setApplicationSessionId
public VitamContext setApplicationSessionId(java.lang.String applicationSessionId)
Sets the application session id- Parameters:
applicationSessionId
- the application session id to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getPersonalCertificate
public java.lang.String getPersonalCertificate()
Gets the personnal certificate.- Returns:
-
setPersonalCertificate
public VitamContext setPersonalCertificate(java.lang.String personalCertificate)
Sets personalCertificate- Parameters:
personalCertificate
- the personalCertificate to set- Returns:
- "this" instance. May be used for fluent instance creation.
-
getHeaders
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
Returns a vitam context parameters as headers- Returns:
- header-name/value map of vitam context parameters
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-