Module 
Package org.xnio.sasl

Class SaslWrappingConduit

    • Method Detail

      • send

        public boolean send​(java.nio.ByteBuffer src)
                     throws java.io.IOException
        Description copied from interface: MessageSinkConduit
        Send a complete message.
        Specified by:
        send in interface MessageSinkConduit
        Overrides:
        send in class AbstractMessageSinkConduit<MessageSinkConduit>
        Parameters:
        src - the message to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • send

        public boolean send​(java.nio.ByteBuffer[] srcs,
                            int offs,
                            int len)
                     throws java.io.IOException
        Description copied from interface: MessageSinkConduit
        Send a complete message.
        Specified by:
        send in interface MessageSinkConduit
        Overrides:
        send in class AbstractMessageSinkConduit<MessageSinkConduit>
        Parameters:
        srcs - the buffers holding the message to send
        offs - the offset into the buffer array of the first buffer
        len - the number of buffers that contain data to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • sendFinal

        public boolean sendFinal​(java.nio.ByteBuffer src)
                          throws java.io.IOException
        Description copied from interface: MessageSinkConduit
        Send a complete message. If the message is successfully sent then the sink will have its writes terminated.
        Specified by:
        sendFinal in interface MessageSinkConduit
        Overrides:
        sendFinal in class AbstractMessageSinkConduit<MessageSinkConduit>
        Parameters:
        src - the message to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • sendFinal

        public boolean sendFinal​(java.nio.ByteBuffer[] srcs,
                                 int offs,
                                 int len)
                          throws java.io.IOException
        Description copied from interface: MessageSinkConduit
        Send a complete message. If the message is successfully sent then the sink will have its writes terminated.
        Specified by:
        sendFinal in interface MessageSinkConduit
        Overrides:
        sendFinal in class AbstractMessageSinkConduit<MessageSinkConduit>
        Parameters:
        srcs - the buffers holding the message to send
        offs - the offset into the buffer array of the first buffer
        len - the number of buffers that contain data to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • flush

        public boolean flush()
                      throws java.io.IOException
        Description copied from interface: SinkConduit
        Flush out any unwritten, buffered output.
        Specified by:
        flush in interface SinkConduit
        Overrides:
        flush in class AbstractSinkConduit<MessageSinkConduit>
        Returns:
        true if everything is flushed, false otherwise
        Throws:
        java.io.IOException - if flush fails