java.lang.Object | |
↳ | com.microstrategy.webapi.acm.ACMSessionId |
![]() |
ACMSessionId is the implementation of the IDSSXMLSessionId
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | ACMSessionId.ConfigSessionId | ||||||||||
class | ACMSessionId.MasterSessionId | ||||||||||
class | ACMSessionId.ProjectSessionId |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ACMSessionId(String iAugmentedSessionId, IDSSXMLSessionId.TYPE iType) | |||||||||||
ACMSessionId(IDSSXMLSessionIdParser iSessionIdParser) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract ACMSessionId |
Clone()
Clone will create a new copy of the IDSSXMLSessionId.
| ||||||||||
void | addLocale(int iLocale) | ||||||||||
void | addMessageId(String iMessageId) | ||||||||||
void | addProjectId(String iProjectId) | ||||||||||
void | addRetVal(int iRetVal) | ||||||||||
abstract IDSSXMLSessionId.IConfigSessionId |
castConfigSessionId()
castConfigSessionId returns the IConfigSessionId already cast.
| ||||||||||
abstract IDSSXMLSessionId.IProjectSessionId |
castProjectSessionId()
castProjectSessionId returns the IPsid already cast.
| ||||||||||
boolean |
equals(Object iThat)
equals compares ONLY the Session Id proper.
| ||||||||||
String |
getAugmentedSessionId()
getAugmentedSessionId returns as a string the full sessionID including the IServer node name, locale, return value,
message id,and/or the project id.
| ||||||||||
String |
getIServerNodeName()
getIServerNodeName extracts the IServer node name from the sessionID.
| ||||||||||
int |
getLocale()
getLocale extracts the locale from the sessionID.
| ||||||||||
String |
getMessageId()
getMessageId extracts the message id from the sessionID.
| ||||||||||
int | getPort() | ||||||||||
String |
getProjectId()
getProjectId extracts the project id from the sessionID.
| ||||||||||
int |
getRetVal()
getRetVal extracts the return value from the sessionID.
| ||||||||||
String |
getSessionId()
getSessionId extracts only the 32 character GUID.
| ||||||||||
IDSSXMLSessionId.TYPE |
getType()
getType returns what type of SessionId this is.
| ||||||||||
boolean | hasLocale() | ||||||||||
boolean | hasMessageId() | ||||||||||
boolean | hasProjectId() | ||||||||||
boolean | hasRetVal() | ||||||||||
int |
hashCode()
hash hashes ONLY the Session Id proper.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
MSTRWebAPIException |
---|
Clone will create a new copy of the IDSSXMLSessionId. This is good because the ConfigSessionIds and ProjectSessionIds are held inside a number of maps and will be accessed on different threads. To avoid locking, it is good to create a Clone that you can use temporarily
MSTRWebAPIException |
---|
castConfigSessionId returns the IConfigSessionId already cast. If this object is not a ConfigSessionId it will throw MSTRWebAPIException. To avoid the throw use getType to find out what type it is before casting
MSTRWebAPIException |
---|
castProjectSessionId returns the IPsid already cast. If this object is not a ProjectSessionId it will throw MSTRWebAPIException. To avoid the throw use getType to find out what type it is before casting
MSTRWebAPIException |
---|
equals compares ONLY the Session Id proper. It does not check the augmented parts. That's because the real Session Id does not include the augmented parts. The augmented parts are superfluous
getAugmentedSessionId returns as a string the full sessionID including the IServer node name, locale, return value, message id,and/or the project id. This string can be used by methods in the Web SDK. It is important to not make any assumptions about the contents and/or syntax of the string.
getIServerNodeName extracts the IServer node name from the sessionID. It will throw if it is not part of the sessionID. To avoid the throw, first use hasIServerNodeName()
getLocale extracts the locale from the sessionID. It will throw if it is not part of the sessionID. To avoid the throw, first use hasLocale()
MSTRWebAPIException |
---|
getMessageId extracts the message id from the sessionID. It will throw if it is not part of the sessionID. To avoid the throw, first use hasMessageId()
MSTRWebAPIException |
---|
getProjectId extracts the project id from the sessionID. It will throw if it is not part of the sessionID. To avoid the throw, first use hasPid()
MSTRWebAPIException |
---|
getRetVal extracts the return value from the sessionID. It will throw if it is not part of the sessionID. To avoid the throw, first use hasRetVal()
MSTRWebAPIException |
---|
getSessionId extracts only the 32 character GUID. This is the only portion of the sessionID that is guaranteed to exists (note this method does not throw). If that portion is missing, then the IDSSXMLSessionId object will throw during construction.
getType returns what type of SessionId this is. It is either MasterSessionId, ConfigSessionId, or Psid
hash hashes ONLY the Session Id proper. It does not hash the augmented parts. That's because the real Session Id does not include the augmented parts. The augmented parts are superfluous