public class TSessionState
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TSessionState()
Initializes the session state.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSessionId()
Gets the session id.
|
java.lang.String |
getSessionKey()
Gets the session key.
|
boolean |
isGiven()
Indicates if a session state (sessionId,sessionKey) is given.
|
protected boolean |
isHealthy()
Indicates whether the session state is healthy or not.
|
void |
reset()
Resets the current session state.
|
void |
setLocale(java.util.Locale locale)
Sets the locale.
|
protected void |
setSessionId(java.lang.String newSessionId)
Sets the session id.
|
protected void |
setSessionKey(java.lang.String newSessionKey)
Sets the session key.
|
java.lang.String |
toString()
Writes the current session state into a String.
|
void |
update(java.lang.String newSessionId,
java.lang.String newSessionKey)
Updates the session state with given sessionId and sessionKey.
|
protected void |
update(TStreamHeader header)
Updates the session state according to the session specific content of the stream header.
|
protected void |
writeTo(TCommandStatement commandStatement)
Writes the current session state to the given commandStatement.
|
protected void |
writeTo(TStreamHeader streamHeader)
Writes the current transaction state to the given stream header.
|
protected void writeTo(TCommandStatement commandStatement)
commandStatement
- gets the current transaction state.protected void writeTo(TStreamHeader streamHeader)
streamHeader
- get the current transaction mode within its header.protected void update(TStreamHeader header) throws TSessionStateUpdateException
header
- is the TStreamHeader of a TInputStream instance.TSessionStateUpdateException
- in case of a failure.public void update(java.lang.String newSessionId, java.lang.String newSessionKey) throws TSessionStateUpdateException
newSessionId
- is the new newSessionId.newSessionKey
- is the new newSessionKey.TSessionStateUpdateException
- in case of a failure.public void reset()
protected void setSessionId(java.lang.String newSessionId)
sessionId
- is the current session id.protected void setSessionKey(java.lang.String newSessionKey)
sessionKey
- is the current session key.public java.lang.String getSessionId()
public java.lang.String getSessionKey()
public boolean isGiven()
protected boolean isHealthy()
public java.lang.String toString()
toString
in class java.lang.Object
public void setLocale(java.util.Locale locale)
Copyright (c) 2017 Software AG. All Rights Reserved.