Package org.opensaml.messaging.context
Class InOutOperationContext
- java.lang.Object
-
- org.opensaml.messaging.context.BaseContext
-
- org.opensaml.messaging.context.InOutOperationContext
-
- All Implemented Interfaces:
Iterable<BaseContext>
public class InOutOperationContext extends BaseContext
An operation context which represents concretely a message exchange pattern involving an inbound message and an outbound message. This is the typical request-response pattern seen in messaging environments, and might be either server-side or client-side.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator
-
-
Field Summary
Fields Modifier and Type Field Description private MessageContextinboundContextThe inbound message context.private MessageContextoutboundContextThe outbound message context.
-
Constructor Summary
Constructors Modifier Constructor Description protectedInOutOperationContext()Constructor.InOutOperationContext(MessageContext inbound, MessageContext outbound)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageContextgetInboundMessageContext()The inbound message context instance.MessageContextgetOutboundMessageContext()The outbound message context instance.voidsetInboundMessageContext(MessageContext context)Sets the inbound message context.voidsetOutboundMessageContext(MessageContext context)Sets the outbound message context.-
Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeSubcontext, removeSubcontext, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
inboundContext
@Nullable private MessageContext inboundContext
The inbound message context.
-
outboundContext
@Nullable private MessageContext outboundContext
The outbound message context.
-
-
Constructor Detail
-
InOutOperationContext
protected InOutOperationContext()
Constructor. Sets ID to a generated UUID and creation time to now.
-
InOutOperationContext
public InOutOperationContext(@Nullable MessageContext inbound, @Nullable MessageContext outbound)Constructor.- Parameters:
inbound- the inbound message contextoutbound- the outbound message context
-
-
Method Detail
-
getInboundMessageContext
@Nullable public MessageContext getInboundMessageContext()
The inbound message context instance.- Returns:
- the inbound message context
-
setInboundMessageContext
public void setInboundMessageContext(@Nullable MessageContext context)Sets the inbound message context.- Parameters:
context- inbound message context, may be null
-
getOutboundMessageContext
@Nullable public MessageContext getOutboundMessageContext()
The outbound message context instance.- Returns:
- the outbound message context
-
setOutboundMessageContext
public void setOutboundMessageContext(@Nullable MessageContext context)Sets the outbound message context.- Parameters:
context- outbound message context, may be null
-
-