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>
- Direct Known Subclasses:
ProfileRequestContext
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
FieldsModifier and TypeFieldDescriptionprivate MessageContext
The inbound message context.private MessageContext
The outbound message context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor.InOutOperationContext
(MessageContext inbound, MessageContext outbound) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe inbound message context instance.The outbound message context instance.void
setInboundMessageContext
(MessageContext context) Sets the inbound message context.void
setOutboundMessageContext
(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 Details
-
inboundContext
The inbound message context. -
outboundContext
The outbound message context.
-
-
Constructor Details
-
InOutOperationContext
protected InOutOperationContext()Constructor. Sets ID to a generated UUID and creation time to now. -
InOutOperationContext
Constructor.- Parameters:
inbound
- the inbound message contextoutbound
- the outbound message context
-
-
Method Details
-
getInboundMessageContext
The inbound message context instance.- Returns:
- the inbound message context
-
setInboundMessageContext
Sets the inbound message context.- Parameters:
context
- inbound message context, may be null
-
getOutboundMessageContext
The outbound message context instance.- Returns:
- the outbound message context
-
setOutboundMessageContext
Sets the outbound message context.- Parameters:
context
- outbound message context, may be null
-