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, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MessageContextThe inbound message context.private MessageContextThe outbound message context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor.InOutOperationContext(MessageContext inbound, MessageContext outbound) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the inbound message context, creating an empty one if it does not already exist.Gets the outbound message context, creating an empty one if it does not already exist.The inbound message context instance.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, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
ensureInboundMessageContext
Gets the inbound message context, creating an empty one if it does not already exist.- Returns:
- an existing, or new, inbound message context
- Since:
- 5.0.0
-
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
-
ensureOutboundMessageContext
Gets the outbound message context, creating an empty one if it does not already exist.- Returns:
- an existing, or new, outbound message context
- Since:
- 5.0.0
-
setOutboundMessageContext
Sets the outbound message context.- Parameters:
context- outbound message context, may be null
-