Class BasicMessagePipeline

    • Field Detail

      • outboundPayloadHandler

        private MessageHandler outboundPayloadHandler
        Outbound payload message handler.
      • outboundTransportHandler

        private MessageHandler outboundTransportHandler
        Outbound transport message handler.
      • inboundHandler

        private MessageHandler inboundHandler
        Inbound message handler.
    • Constructor Detail

      • BasicMessagePipeline

        public BasicMessagePipeline​(@Nonnull
                                    MessageEncoder newEncoder,
                                    @Nonnull
                                    MessageDecoder newDecoder)
        Constructor.
        Parameters:
        newEncoder - the message encoder instance
        newDecoder - the message decoder instance
    • Method Detail

      • setEncoder

        protected void setEncoder​(@Nonnull
                                  MessageEncoder newEncoder)
        Set the message encoder instance.
        Parameters:
        newEncoder - the new message encoder
      • setDecoder

        protected void setDecoder​(@Nonnull
                                  MessageDecoder newDecoder)
        Set the message decoder instance.
        Parameters:
        newDecoder - the new message decoder
      • getOutboundPayloadMessageHandler

        public MessageHandler 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 interface MessagePipeline
        Returns:
        the outbound message handler, may be null
      • setOutboundPayloadHandler

        public void setOutboundPayloadHandler​(@Nullable
                                              MessageHandler handler)
        Set the outbound payload message handler.
        Parameters:
        handler - the new handler
      • setOutboundTransportHandler

        public void setOutboundTransportHandler​(MessageHandler handler)
        Set the outbound transport message handler.
        Parameters:
        handler - the new handler
      • setInboundHandler

        public void setInboundHandler​(MessageHandler handler)
        Set the inbound message handler.
        Parameters:
        handler - the new handler