xmlBlaster 2.2.0 API

org.xmlBlaster.engine.qos
Class UpdateReturnQosServer

java.lang.Object
  extended by org.xmlBlaster.engine.qos.UpdateReturnQosServer

public final class UpdateReturnQosServer
extends java.lang.Object

Handling the returned QoS (quality of service) of a update() call.

The server calls back the client and the client return an xml string which is parsed by this class.

Example:

   <qos>
     <state id='OK'/>
  </qos>
 

See Also:
StatusQosFactoryTest, the interface.update requirement

Field Summary
private  StatusQosData statusQosData
           
 
Constructor Summary
UpdateReturnQosServer(Global glob, StatusQosData statusQosData)
          Constructor which reuses a StatusQosData object.
UpdateReturnQosServer(Global glob, java.lang.String xmlQos)
          Constructor which parses XML string.
 
Method Summary
 StatusQosData getData()
          Access the raw data object, usually you shouldn't do it.
 java.lang.Throwable getException()
           
 java.lang.String getState()
          Access the state of message.
 void setException(java.lang.Throwable ex)
          Setter for the exception
 java.lang.String toString()
           
 java.lang.String toXml()
           
 java.lang.String toXml(java.lang.String extraOffset)
          Dump state of this object into a XML ASCII string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statusQosData

private final StatusQosData statusQosData
Constructor Detail

UpdateReturnQosServer

public UpdateReturnQosServer(Global glob,
                             java.lang.String xmlQos)
                      throws XmlBlasterException
Constructor which parses XML string.

Throws:
XmlBlasterException

UpdateReturnQosServer

public UpdateReturnQosServer(Global glob,
                             StatusQosData statusQosData)
Constructor which reuses a StatusQosData object.

Method Detail

getData

public StatusQosData getData()
Access the raw data object, usually you shouldn't do it.

Returns:
The raw data object

getState

public final java.lang.String getState()
Access the state of message.

Returns:
OK (Other values are not yet supported)

toXml

public final java.lang.String toXml()
See Also:
toXml(String)

toXml

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

Parameters:
extraOffset - indenting of tags for nice output
Returns:
The XML representation

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

setException

public void setException(java.lang.Throwable ex)
Setter for the exception


getException

public java.lang.Throwable getException()

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.