xmlBlaster 2.1.0 API

org.xmlBlaster.util.qos
Class DisconnectQosData

java.lang.Object
  extended by org.xmlBlaster.util.qos.QosData
      extended by org.xmlBlaster.util.qos.DisconnectQosData
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DisconnectQosData
extends QosData
implements java.io.Serializable, java.lang.Cloneable

This class encapsulates the qos of a logout() or disconnect()

See Also:
The interface.disconnect requirement, DisconnectQosSaxFactory, DisconnectQosTest, Serialized Form

Field Summary
private  PropBoolean clearSessions
           
private  PropBoolean deleteSubjectQueue
           
protected  I_DisconnectQosFactory factory
           
private static java.util.logging.Logger log
           
private static long serialVersionUID
           
 
Fields inherited from class org.xmlBlaster.util.qos.QosData
DEFAULT_persistent, glob, rcvTimestamp, routeNodeList, routeNodes, serialData
 
Constructor Summary
DisconnectQosData(Global glob)
          Default constructor
DisconnectQosData(Global glob, I_DisconnectQosFactory factory, java.lang.String serialData)
          Parses the given ASCII logout QoS.
 
Method Summary
 boolean clearSessions()
          Return true if we shall kill all other sessions of this user on logout (defaults to false).
 void clearSessions(boolean del)
           
 PropBoolean clearSessionsProp()
           
 java.lang.Object clone()
          Returns a deep clone, you can change safely all data.
 boolean deleteSubjectQueue()
          Return true if subject queue shall be deleted with last user session
 void deleteSubjectQueue(boolean del)
           
 PropBoolean deleteSubjectQueueProp()
           
 boolean isPersistent()
           
 java.lang.String toString()
          Converts the data into a valid XML ASCII string.
 java.lang.String toXml()
          Dump state of this object into a XML ASCII string.
 java.lang.String toXml(java.lang.String extraOffset, java.util.Properties props)
          Dump state of this object into a XML ASCII string.
 
Methods inherited from class org.xmlBlaster.util.qos.QosData
addClientProperty, addClientProperty, addClientProperty, addClientProperty, addClientProperty, addClientProperty, addClientProperty, addClientProperty, addClientProperty, addClientProperty, addRouteInfo, clearRoutes, count, dirtyRead, getClientProperties, getClientProperty, getClientProperty, getClientProperty, getClientProperty, getClientProperty, getClientProperty, getClientProperty, getClientProperty, getClientProperty, getClientProperty, getClientPropertyArr, getContentCharset, getContentStr, getContentStrNoEx, getGlobal, getMethod, getNumRouteNodes, getPersistentProp, getRcvTime, getRcvTimestamp, getRcvTimestampNotNull, getRouteNodes, getSender, getState, getStateInfo, hasStateInfo, isAtMaster, isErase, isErased, isForwardError, isFromPersistenceRecovery, isFromPersistenceRecovery, isGet, isOk, isPublish, isSubscribe, isTimeout, isUnSubscribe, isUpdate, propertyExists, setGlobal, setMethod, setPersistent, setRcvTimestamp, setSender, setState, setStateInfo, size, touchRcvTimestamp, toXmlReadable, writePropertiesXml, writePropertiesXml
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static java.util.logging.Logger log

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

factory

protected transient I_DisconnectQosFactory factory

deleteSubjectQueue

private PropBoolean deleteSubjectQueue

clearSessions

private PropBoolean clearSessions
Constructor Detail

DisconnectQosData

public DisconnectQosData(Global glob)
Default constructor


DisconnectQosData

public DisconnectQosData(Global glob,
                         I_DisconnectQosFactory factory,
                         java.lang.String serialData)
Parses the given ASCII logout QoS.

Method Detail

isPersistent

public boolean isPersistent()
Overrides:
isPersistent in class QosData
Returns:
true/false

toString

public java.lang.String toString()
Converts the data into a valid XML ASCII string.

Overrides:
toString in class java.lang.Object
Returns:
An XML ASCII string

deleteSubjectQueue

public boolean deleteSubjectQueue()
Return true if subject queue shall be deleted with last user session

Returns:
true;

deleteSubjectQueueProp

public PropBoolean deleteSubjectQueueProp()

deleteSubjectQueue

public void deleteSubjectQueue(boolean del)
Parameters:
true - if subject queue shall be deleted with last user session logout

clearSessions

public boolean clearSessions()
Return true if we shall kill all other sessions of this user on logout (defaults to false).

Returns:
false

clearSessionsProp

public PropBoolean clearSessionsProp()

clearSessions

public void clearSessions(boolean del)
Parameters:
true - if we shall kill all other sessions of this user on logout (defaults to false).

toXml

public final java.lang.String toXml()
Dump state of this object into a XML ASCII string.
The default is to include the security string

Specified by:
toXml in class QosData
Returns:
internal state of the RequestBroker as a XML ASCII string

toXml

public final java.lang.String toXml(java.lang.String extraOffset,
                                    java.util.Properties props)
Dump state of this object into a XML ASCII string.

Specified by:
toXml in class QosData
Parameters:
extraOffset - indenting of tags for nice output
Returns:
internal state of the RequestBroker as a XML ASCII string

clone

public java.lang.Object clone()
Returns a deep clone, you can change safely all data.

Overrides:
clone in class QosData

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.