Top Fields Constructors Methods
org.xnio.sasl

public final Class SaslWrappingConduit

extends AbstractMessageSinkConduit<MessageSinkConduit>
implements MessageSinkConduit
Class Inheritance
All Implemented Interfaces
org.xnio.conduits.MessageSinkConduit, org.xnio.conduits.SinkConduit, org.xnio.conduits.Conduit
Imports
java.io.IOException, java.nio.ByteBuffer, org.xnio.Buffers, org.xnio.conduits.AbstractMessageSinkConduit, .Conduits, .MessageSinkConduit

Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private ByteBuffer
private final SaslWrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
public boolean
flush()

Overrides org.xnio.conduits.AbstractSinkConduit.flush.

Implements org.xnio.conduits.SinkConduit.flush.

Flush out any unwritten, buffered output.

public boolean
send(final ByteBuffer
the message to send
src
)

Overrides org.xnio.conduits.AbstractMessageSinkConduit.send.

Implements org.xnio.conduits.MessageSinkConduit.send.

Send a complete message.

public boolean
send(final ByteBuffer[]
the buffers holding the message to send
srcs
,
final int
the offset into the buffer array of the first buffer
offs
,
final int
the number of buffers that contain data to send
len
)

Overrides org.xnio.conduits.AbstractMessageSinkConduit.send.

Implements org.xnio.conduits.MessageSinkConduit.send.

Send a complete message.

public boolean
public boolean
sendFinal(ByteBuffer[]
the buffers holding the message to send
srcs
,
int
the offset into the buffer array of the first buffer
offs
,
int
the number of buffers that contain data to send
len
)

Overrides org.xnio.conduits.AbstractMessageSinkConduit.sendFinal.

Implements org.xnio.conduits.MessageSinkConduit.sendFinal.

Send a complete message.

Field Detail

bufferback to summary
private ByteBuffer buffer
wrapperback to summary
private final SaslWrapper wrapper

Constructor Detail

SaslWrappingConduitback to summary
public SaslWrappingConduit(final MessageSinkConduit next, final SaslWrapper wrapper)

Method Detail

doSendback to summary
private boolean doSend() throws IOException
flushback to summary
public boolean flush() throws IOException

Overrides org.xnio.conduits.AbstractSinkConduit.flush.

Implements org.xnio.conduits.SinkConduit.flush.

Doc from org.xnio.conduits.SinkConduit.flush.

Flush out any unwritten, buffered output.

Returns:boolean

true if everything is flushed, false otherwise

Exceptions
IOException:
if flush fails
sendback to summary
public boolean send(final ByteBuffer src) throws IOException

Overrides org.xnio.conduits.AbstractMessageSinkConduit.send.

Implements org.xnio.conduits.MessageSinkConduit.send.

Doc from org.xnio.conduits.MessageSinkConduit.send.

Send a complete message.

Parameters
src:ByteBuffer

the message to send

Returns:boolean

the result of the send operation; true if the message was sent, or false if it would block

Exceptions
IOException:
if an I/O error occurs
sendback to summary
public boolean send(final ByteBuffer[] srcs, final int offs, final int len) throws IOException

Overrides org.xnio.conduits.AbstractMessageSinkConduit.send.

Implements org.xnio.conduits.MessageSinkConduit.send.

Doc from org.xnio.conduits.MessageSinkConduit.send.

Send a complete message.

Parameters
srcs:ByteBuffer[]

the buffers holding the message to send

offs:int

the offset into the buffer array of the first buffer

len:int

the number of buffers that contain data to send

Returns:boolean

the result of the send operation; true if the message was sent, or false if it would block

Exceptions
IOException:
if an I/O error occurs
sendFinalback to summary
public boolean sendFinal(ByteBuffer src) throws IOException

Overrides org.xnio.conduits.AbstractMessageSinkConduit.sendFinal.

Implements org.xnio.conduits.MessageSinkConduit.sendFinal.

Doc from org.xnio.conduits.MessageSinkConduit.sendFinal.

Send a complete message. If the message is successfully sent then the sink will have its writes terminated.

Parameters
src:ByteBuffer

the message to send

Returns:boolean

the result of the send operation; true if the message was sent, or false if it would block

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
sendFinalback to summary
public boolean sendFinal(ByteBuffer[] srcs, int offs, int len) throws IOException

Overrides org.xnio.conduits.AbstractMessageSinkConduit.sendFinal.

Implements org.xnio.conduits.MessageSinkConduit.sendFinal.

Doc from org.xnio.conduits.MessageSinkConduit.sendFinal.

Send a complete message. If the message is successfully sent then the sink will have its writes terminated.

Parameters
srcs:ByteBuffer[]

the buffers holding the message to send

offs:int

the offset into the buffer array of the first buffer

len:int

the number of buffers that contain data to send

Returns:boolean

the result of the send operation; true if the message was sent, or false if it would block

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs