Package org.opensaml.profile.testing
Class RequestContextBuilder
java.lang.Object
org.opensaml.profile.testing.RequestContextBuilder
Builder used to construct
ProfileRequestContext used in ProfileAction
executions.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ObjectThe inbound message.private StringThe ID of the inbound message.private InstantThe issue instant of the inbound message.private StringThe issuer of the inbound message.private final StringValue used to represent a string value that has not be set.private ObjectThe outbound message.private StringThe ID of the outbound message.private InstantThe issue instant of the outbound message.private StringThe issuer of the outbound message. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.RequestContextBuilder(RequestContextBuilder prototype) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageContextBuilds a inboundMessageContext.protected MessageContextBuilds a outboundMessageContext.Builds aProfileRequestContext.setInboundMessage(Object message) Sets the inbound message.Sets the ID of the inbound message.setInboundMessageIssueInstant(Instant instant) Sets the issue instant of the inbound message.setInboundMessageIssuer(String issuer) Sets the issuer of the inbound message.setOutboundMessage(Object message) Sets the outbound message.Sets the ID of the outbound message.setOutboundMessageIssueInstant(Instant instant) Sets the issue instant of the outbound message.setOutboundMessageIssuer(String issuer) Sets the issuer of the outbound message.
-
Field Details
-
NO_VAL
Value used to represent a string value that has not be set.- See Also:
-
inboundMessageId
The ID of the inbound message. -
inboundMessageIssueInstant
The issue instant of the inbound message. -
inboundMessageIssuer
The issuer of the inbound message. -
inboundMessage
The inbound message. -
outboundMessageId
The ID of the outbound message. -
outboundMessageIssueInstant
The issue instant of the outbound message. -
outboundMessageIssuer
The issuer of the outbound message. -
outboundMessage
The outbound message.
-
-
Constructor Details
-
RequestContextBuilder
public RequestContextBuilder()Constructor. -
RequestContextBuilder
Constructor.- Parameters:
prototype- prototype whose properties are copied onto this builder
-
-
Method Details
-
setInboundMessageId
Sets the ID of the inbound message.- Parameters:
id- ID of the inbound message- Returns:
- this builder
-
setInboundMessageIssueInstant
Sets the issue instant of the inbound message.- Parameters:
instant- issue instant of the inbound message- Returns:
- this builder
-
setInboundMessageIssuer
Sets the issuer of the inbound message.- Parameters:
issuer- issuer of the inbound message- Returns:
- this builder
-
setInboundMessage
Sets the inbound message.- Parameters:
message- the inbound message- Returns:
- this builder
-
setOutboundMessageId
Sets the ID of the outbound message.- Parameters:
id- ID of the outbound message- Returns:
- this builder
-
setOutboundMessageIssueInstant
Sets the issue instant of the outbound message.- Parameters:
instant- issue instant of the outbound message- Returns:
- this builder
-
setOutboundMessageIssuer
Sets the issuer of the outbound message.- Parameters:
issuer- issuer of the outbound message- Returns:
- this builder
-
setOutboundMessage
Sets the outbound message.- Parameters:
message- the outbound message- Returns:
- this builder
-
buildProfileRequestContext
Builds aProfileRequestContext. The default implementation builds aProfileRequestContextthat contains a:- inbound message context created by
buildInboundMessageContext() - outbound message context created by
buildOutboundMessageContext()
- Returns:
- the constructed
ProfileRequestContext
- inbound message context created by
-
buildInboundMessageContext
Builds a inboundMessageContext. The default implementation builds aMessageContextthat contains:- the message provided by
setInboundMessage(Object)
- Returns:
- the constructed
MessageContext
- the message provided by
-
buildOutboundMessageContext
Builds a outboundMessageContext. The default implementation builds aMessageContextthat contains:- the message provided by
setOutboundMessage(Object)
- Returns:
- the constructed
MessageContext
- the message provided by
-