Package org.opensaml.messaging.pipeline
Class BasicMessagePipeline
java.lang.Object
org.opensaml.messaging.pipeline.BasicMessagePipeline
- All Implemented Interfaces:
MessagePipeline
- Direct Known Subclasses:
BasicHttpClientMessagePipeline
,BasicHttpServletMessagePipeline
Basic implementation of
MessagePipeline
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MessageDecoder
Message decoder.private MessageEncoder
Message encoder.private MessageHandler
Inbound message handler.private MessageHandler
Outbound payload message handler.private MessageHandler
Outbound transport message handler. -
Constructor Summary
ConstructorsConstructorDescriptionBasicMessagePipeline
(MessageEncoder newEncoder, MessageDecoder newDecoder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the message decoder instance.Get the message encoder instance.Get the (optional) inbound message handler instance.Get the (optional) outbound payload message handler instance.Get the (optional) outbound transport message handler instance.protected void
setDecoder
(MessageDecoder newDecoder) Set the message decoder instance.protected void
setEncoder
(MessageEncoder newEncoder) Set the message encoder instance.void
setInboundHandler
(MessageHandler handler) Set the inbound message handler.void
setOutboundPayloadHandler
(MessageHandler handler) Set the outbound payload message handler.void
Set the outbound transport message handler.
-
Field Details
-
encoder
Message encoder. -
decoder
Message decoder. -
outboundPayloadHandler
Outbound payload message handler. -
outboundTransportHandler
Outbound transport message handler. -
inboundHandler
Inbound message handler.
-
-
Constructor Details
-
BasicMessagePipeline
Constructor.- Parameters:
newEncoder
- the message encoder instancenewDecoder
- the message decoder instance
-
-
Method Details
-
getEncoder
Get the message encoder instance.- Specified by:
getEncoder
in interfaceMessagePipeline
- Returns:
- the message encoder
-
setEncoder
Set the message encoder instance.- Parameters:
newEncoder
- the new message encoder
-
getDecoder
Get the message decoder instance.- Specified by:
getDecoder
in interfaceMessagePipeline
- Returns:
- the message decoder
-
setDecoder
Set the message decoder instance.- Parameters:
newDecoder
- the new message decoder
-
getOutboundPayloadMessageHandler
Get the (optional) outbound payload message handler instance.This is the handler intended to be called on the outbound message context, prior to any message encoding.
- Specified by:
getOutboundPayloadMessageHandler
in interfaceMessagePipeline
- Returns:
- the outbound message handler, may be null
-
setOutboundPayloadHandler
Set the outbound payload message handler.- Parameters:
handler
- the new handler
-
getOutboundTransportMessageHandler
Get the (optional) outbound transport message handler instance.This is the handler intended to be called after
MessageEncoder.prepareContext()
, but beforeMessageEncoder.encode()
.- Specified by:
getOutboundTransportMessageHandler
in interfaceMessagePipeline
- Returns:
- the outbound message handler, may be null
-
setOutboundTransportHandler
Set the outbound transport message handler.- Parameters:
handler
- the new handler
-
getInboundMessageHandler
Get the (optional) inbound message handler instance.- Specified by:
getInboundMessageHandler
in interfaceMessagePipeline
- Returns:
- the inbound message handler, may be null
-
setInboundHandler
Set the inbound message handler.- Parameters:
handler
- the new handler
-