Package com.verisign.epp.serverstub
Class SessionData
java.lang.Object
com.verisign.epp.serverstub.SessionData
- All Implemented Interfaces:
Serializable,Cloneable
The
SessionData is a utility class that contains data related to an
established EPP client/server session.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes a copy of the invokingSessionDataobjectgetAttribute(String aName) Gets a session attribute by attribute name.Returns the EPPGreeting associated with this sessionGets theEPPLoginCmdused for the authenticated session.Gets theEPPMessagedecoded.booleanReturns the logout state of this session object.booleanHas the message been set?booleanReturns the login state of this session objectvoidsetAttribute(String aName, Object aResource) Sets a session attribute by use an attribute name (key) along with an attribute value.voidsetGreeting(EPPGreeting aGreeting) Sets the greeting that will be sent to clients when they connectvoidsetLoggedIn(boolean aBool) Sets the login state of this session objectvoidsetLoginCmd(EPPLoginCmd aLoginCmd) Sets theEPPLoginCmdused for the authenticated session.voidsetLogoutOccured(boolean aBool) Sets the logout state of this session object.voidsetMessage(EPPMessage aMessage) Sets theEPPMessagedecoded.
-
Constructor Details
-
SessionData
public SessionData()Constructs a new SessionData instance
-
-
Method Details
-
clone
Makes a copy of the invokingSessionDataobject- Overrides:
clonein classObject- Returns:
- Clone of
SessionData - Throws:
CloneNotSupportedException- Error cloningSessionData
-
hasLogoutOccured
public boolean hasLogoutOccured()Returns the logout state of this session object.- Returns:
- boolean True if a logout has occurred
-
setLogoutOccured
public void setLogoutOccured(boolean aBool) Sets the logout state of this session object.- Parameters:
aBool- The new logout state
-
isLoggedIn
public boolean isLoggedIn()Returns the login state of this session object- Returns:
- boolean The login state of this session object
-
getLoginCmd
Gets theEPPLoginCmdused for the authenticated session.- Returns:
EPPLoginCmdif set;nullotherwise.
-
setLoginCmd
Sets theEPPLoginCmdused for the authenticated session.- Parameters:
aLoginCmd-EPPLoginCmdpassed by the user for the authenticated session.
-
setLoggedIn
public void setLoggedIn(boolean aBool) Sets the login state of this session object- Parameters:
aBool- The new login state
-
getGreeting
Returns the EPPGreeting associated with this session- Returns:
- EPPGreeting The greeting
-
setGreeting
Sets the greeting that will be sent to clients when they connect- Parameters:
aGreeting- The greeting that should be sent.
-
setAttribute
Sets a session attribute by use an attribute name (key) along with an attribute value.- Parameters:
aName- Name of the attributeaResource- Value of the attribute
-
getAttribute
Gets a session attribute by attribute name.- Parameters:
aName- Name of attribute- Returns:
- Value of attribute if defined;
nullotherwise.
-
hasMessage
public boolean hasMessage()Has the message been set?- Returns:
trueif the set date has been set;falseotherwise.
-
getMessage
Gets theEPPMessagedecoded.- Returns:
- Message decoded if set;
nullotherwise
-
setMessage
Sets theEPPMessagedecoded.- Parameters:
aMessage- Message decoded
-