|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jibx.ws.context.Context org.jibx.ws.context.ExchangeContext
public final class ExchangeContext
Maintains the context for all messages in a message exchange.
Method Summary | |
---|---|
static ExchangeContext |
createInOnlyExchange(InContext inboundContext)
Creates an ExchangeContext for an IN-ONLY message exchange. |
static ExchangeContext |
createInOutExchange(InContext inboundContext,
OutContext outboundContext)
Creates an ExchangeContext for an IN-OUT message exchange. |
static ExchangeContext |
createOutInExchange(OutContext outboundContext,
InContext inboundContext)
Creates an ExchangeContext for an OUT-IN message exchange. |
static ExchangeContext |
createOutOnlyExchange(OutContext outboundContext)
Creates an ExchangeContext for an OUT-ONLY message exchange. |
MessageContext |
getCurrentMessageContext()
Returns the context of the current message being processed, or null if the message exchange is
complete. |
MessageContext |
getNextMessageContext()
Returns the next message context in the exchange context, or null if the message exchange is
complete or the current message context is the last one. |
void |
reset()
Resets the state of this context, so that it can be reused by a subsequent message exchange. |
void |
switchMessageContext()
Signals that the current message context is complete, and the exchange should move to the next message context. |
Methods inherited from class org.jibx.ws.context.Context |
---|
getAttribute, getAttributeNames, removeAttribute, setAttribute |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ExchangeContext createInOnlyExchange(InContext inboundContext)
ExchangeContext
for an IN-ONLY message exchange.
inboundContext
- the context for the inbound message
public static ExchangeContext createOutOnlyExchange(OutContext outboundContext)
ExchangeContext
for an OUT-ONLY message exchange.
outboundContext
- the context for the outbound message
public static ExchangeContext createOutInExchange(OutContext outboundContext, InContext inboundContext)
ExchangeContext
for an OUT-IN message exchange.
outboundContext
- the context for the outbound messageinboundContext
- the context for the inbound message
public static ExchangeContext createInOutExchange(InContext inboundContext, OutContext outboundContext)
ExchangeContext
for an IN-OUT message exchange.
inboundContext
- the context for the inbound messageoutboundContext
- the context for the outbound message
public MessageContext getCurrentMessageContext()
null
if the message exchange is
complete.
null
if the exchange is completepublic MessageContext getNextMessageContext()
null
if the message exchange is
complete or the current message context is the last one.
null
if the exchange will be complete after the current message
contextpublic void switchMessageContext()
public void reset()
reset
in class Context
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |