public class SessionNotification extends Object
SessionNotification
class represents a
SessionNotification
XML document. The
SessionNotification
DTD is defined as the following:
<?xml version="1.0"> < !DOCTYPE SessionNotification [ < !ELEMENT SessionNotification (Session, Type, Time)> < !ATTLIST SessionNotification vers CDATA #REQUIRED notid CDATA #REQUIRED> < !ELEMENT Session> < !ATTLIST Session sid CDATA #REQUIRED stype (user|application) "user" cid CDATA #REQUIRED cdomain CDATA #REQUIRED maxtime CDATA #REQUIRED maxidle CDATA #REQUIRED maxcaching CDATA #REQUIRED timeleft CDATA #REQUIRED timeidle CDATA #REQUIRED state (invalid|valid|inactive|destroyed) "invalid"> < !ELEMENT Type (creation|idle|max|logout|reactivation|destroy) "creation"> < !ELEMENT Time (#PCDATA)> ]>
Constructor and Description |
---|
SessionNotification(SessionInfo info,
int type,
long time)
This constructor shall only be used at the server side to construct a
SessionNotification object. |
Modifier and Type | Method and Description |
---|---|
String |
getNotificationID()
Returns the notification ID.
|
long |
getNotificationTime()
Returns the notification time.
|
int |
getNotificationType()
Returns the notification type.
|
String |
getNotificationVersion()
Returns the notification version.
|
SessionInfo |
getSessionInfo()
Returns the session information.
|
static SessionNotification |
parseXML(String xml)
This method is used primarily at the server side to reconstruct a
SessionNotification object based on the XML document
received from client. |
String |
toXMLString()
Translates the notification to an XML document String based
on the
SessionNotification DTD described above. |
public SessionNotification(SessionInfo info, int type, long time)
SessionNotification
object.info
- The session information.type
- The session event type.time
- The session event time.public static SessionNotification parseXML(String xml)
SessionNotification
object based on the XML document
received from client. The DTD of this XML document is described above.xml
- The SessionNotification
XML document String.public String getNotificationVersion()
public String getNotificationID()
public SessionInfo getSessionInfo()
public int getNotificationType()
public long getNotificationTime()
public String toXMLString()
SessionNotification
DTD described above.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.