|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.error.MsgErrorInfo
public final class MsgErrorInfo
Encapsulates all necessary information to allow error handling of a lost message.
Instances of this class are immutable.
Constructor Summary | |
---|---|
MsgErrorInfo(Global glob,
MsgQueueEntry[] msgQueueEntries,
I_DispatchManager dispatchManager,
java.lang.Throwable throwable)
Creates an error info instance for an array of message queue entries |
|
MsgErrorInfo(Global glob,
MsgQueueEntry msgQueueEntry,
I_DispatchManager dispatchManager,
java.lang.Throwable throwable)
Creates an error info instance with errorCode="internal.unknown" |
|
MsgErrorInfo(Global glob,
SessionName sessionName,
MsgUnitRaw msgUnitRaw,
java.lang.Throwable throwable)
Called for raw messages e.g. |
|
MsgErrorInfo(Global glob,
SessionName sessionName,
MsgUnit msgUnit,
java.lang.Throwable throwable)
Creates an error info instance from server side XmlBlasterImpl.publish failure (remote method invokation) without a queue involved |
Method Summary | |
---|---|
I_DispatchManager |
getDispatchManager()
Access the DispatchManager which holds the queue. |
Global |
getGlob()
|
MsgQueueEntry[] |
getMsgQueueEntries()
Access the message entry object to be handled |
MsgUnit |
getMsgUnit()
Is not null for client calls into server like XmlBlasterImpl.publish() where no queue is involved. |
MsgUnitRaw |
getMsgUnitRaw()
Is not null for client calls into server like XmlBlasterImpl.publish() where no queue is involved and the message could not be parsed. |
I_Queue |
getQueue()
Access the queue where the entries are inside. |
SessionName |
getSessionName()
Access the sender. |
XmlBlasterException |
getXmlBlasterException()
Access the exception object describing the problem |
java.lang.String |
toString()
|
java.lang.String |
toXml()
Dump state of this object into XML. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MsgErrorInfo(Global glob, SessionName sessionName, MsgUnitRaw msgUnitRaw, java.lang.Throwable throwable)
sessionName
- The sender clientmsgUnitRaw
- the message to handle, if it was not possible to parse itthrowable
- Creates an error info instance with errorCode="internal.unknown" public MsgErrorInfo(Global glob, SessionName sessionName, MsgUnit msgUnit, java.lang.Throwable throwable)
sessionName
- The sender clientmsgUnit
- the message to handlethrowable
- Creates an error info instance with errorCode="internal.unknown" public MsgErrorInfo(Global glob, MsgQueueEntry msgQueueEntry, I_DispatchManager dispatchManager, java.lang.Throwable throwable)
dispatchManager
- The dispatchManager/queue where the entry is inside, null if the entry is not in a queuethrowable
- Creates an error info instance with errorCode="internal.unknown" public MsgErrorInfo(Global glob, MsgQueueEntry[] msgQueueEntries, I_DispatchManager dispatchManager, java.lang.Throwable throwable)
dispatchManager
- The dispatchManager/queue where the entry is inside, null if the entry is not in a queuethrowable
- Creates an error info instance with errorCode="internal.unknown" Method Detail |
---|
public MsgQueueEntry[] getMsgQueueEntries()
getMsgQueueEntries
in interface I_MsgErrorInfo
public I_Queue getQueue()
getQueue
in interface I_MsgErrorInfo
public I_DispatchManager getDispatchManager()
I_MsgErrorInfo
getDispatchManager
in interface I_MsgErrorInfo
public XmlBlasterException getXmlBlasterException()
getXmlBlasterException
in interface I_MsgErrorInfo
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String toXml()
toXml
in interface I_MsgErrorInfo
public final java.lang.String toXml(java.lang.String extraOffset)
toXml
in interface I_MsgErrorInfo
extraOffset
- indenting of tags
public Global getGlob()
public SessionName getSessionName()
I_MsgErrorInfo
getSessionName
in interface I_MsgErrorInfo
public MsgUnit getMsgUnit()
I_MsgErrorInfo
getMsgUnit
in interface I_MsgErrorInfo
public MsgUnitRaw getMsgUnitRaw()
I_MsgErrorInfo
getMsgUnitRaw
in interface I_MsgErrorInfo
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |