Package net.shibboleth.sp.context
Class AgentRequestContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.sp.context.AgentRequestContext
- All Implemented Interfaces:
Iterable<BaseContext>
General context for an agent request tracking basic information about the request, the messages
from and back to the agent, and wrapped servlet interfaces.
This context leaves the real input and output message trees free for use by existing classes.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AgentAgent making the request.private ApplicationApplication for which the request was made.private DDFInput message.private DDFOutput message.private RemotedHttpServletRequestWrapped servlet request backed by input.private RemotedHttpServletResponseWrapped servlet response backed by output. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAgent()Get the agent making the request.Get the application for which the request was made.getInput()Get the input message from the agent.Get the output message for the agent.Get the wrapped servlet request backed by the input message.Get the wrapped servlet response backed by the output message.Set the agent making the request.Set the application for which the request was made.Set the input message from the agent.Set the output message for the agent.Set the wrapped servlet request backed by the input message.Set the wrapped servlet response backed by the output message.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
-
agent
Agent making the request. -
application
Application for which the request was made. -
input
Input message. -
output
Output message. -
wrappedHttpServletRequest
Wrapped servlet request backed by input. -
wrappedHttpServletResponse
Wrapped servlet response backed by output.
-
-
Constructor Details
-
AgentRequestContext
public AgentRequestContext()
-
-
Method Details
-
getAgent
Get the agent making the request.- Returns:
- the agent
-
setAgent
Set the agent making the request.- Parameters:
a- agent to set- Returns:
- this context
-
getApplication
Get the application for which the request was made.- Returns:
- the application
-
setApplication
Set the application for which the request was made.- Parameters:
app- application to set- Returns:
- this context
-
getInput
Get the input message from the agent.- Returns:
- input message
-
setInput
Set the input message from the agent.- Parameters:
ddf- input message- Returns:
- this context
-
getOutput
Get the output message for the agent.- Returns:
- output message
-
setOutput
Set the output message for the agent.- Parameters:
ddf- output message- Returns:
- this context
-
getRemotedHttpServletRequest
Get the wrapped servlet request backed by the input message.- Returns:
- wrapped servlet request
-
setRemotedHttpServletRequest
@Nonnull public AgentRequestContext setRemotedHttpServletRequest(@Nullable RemotedHttpServletRequest wrapped) Set the wrapped servlet request backed by the input message.- Parameters:
wrapped- wrapped servlet request- Returns:
- this context
-
getRemotedHttpServletResponse
Get the wrapped servlet response backed by the output message.- Returns:
- wrapped servlet response
-
setRemotedHttpServletResponse
@Nonnull public AgentRequestContext setRemotedHttpServletResponse(@Nullable RemotedHttpServletResponse wrapped) Set the wrapped servlet response backed by the output message.- Parameters:
wrapped- wrapped servlet response- Returns:
- this context
-