Package io.undertow.io
Class BlockingSenderImpl
- java.lang.Object
-
- io.undertow.io.BlockingSenderImpl
-
-
Constructor Summary
Constructors Constructor Description BlockingSenderImpl(HttpServerExchange exchange, OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this sender asynchronouslyvoidclose(IoCallback callback)Closes this sender asynchronously.voidsend(String data)Write the given String using async IO, and ends the exchange when donevoidsend(String data, IoCallback callback)Write the given String using async IO, and calls the given callback on completion or error.voidsend(String data, Charset charset)Write the given String using async IO, and ends the exchange when donevoidsend(String data, Charset charset, IoCallback callback)Write the given String using async IO, and calls the given callback on completion or error.voidsend(ByteBuffer buffer)Write the given buffer using async IO, and ends the exchange when donevoidsend(ByteBuffer[] buffer)Write the given buffers using async IO, and ends the exchange when donevoidsend(ByteBuffer[] buffer, IoCallback callback)Write the given buffers using async IO, and calls the given callback on completion or error.voidsend(ByteBuffer buffer, IoCallback callback)Write the given buffer using async IO, and calls the given callback on completion or error.voidtransferFrom(FileChannel source, IoCallback callback)Transfers all content from the specified file
-
-
-
Constructor Detail
-
BlockingSenderImpl
public BlockingSenderImpl(HttpServerExchange exchange, OutputStream outputStream)
-
-
Method Detail
-
send
public void send(ByteBuffer buffer, IoCallback callback)
Description copied from interface:SenderWrite the given buffer using async IO, and calls the given callback on completion or error.
-
send
public void send(ByteBuffer[] buffer, IoCallback callback)
Description copied from interface:SenderWrite the given buffers using async IO, and calls the given callback on completion or error.
-
send
public void send(ByteBuffer buffer)
Description copied from interface:SenderWrite the given buffer using async IO, and ends the exchange when done
-
send
public void send(ByteBuffer[] buffer)
Description copied from interface:SenderWrite the given buffers using async IO, and ends the exchange when done
-
send
public void send(String data, IoCallback callback)
Description copied from interface:SenderWrite the given String using async IO, and calls the given callback on completion or error.The CharSequence is encoded to UTF8
-
send
public void send(String data, Charset charset, IoCallback callback)
Description copied from interface:SenderWrite the given String using async IO, and calls the given callback on completion or error.
-
send
public void send(String data)
Description copied from interface:SenderWrite the given String using async IO, and ends the exchange when doneThe CharSequence is encoded to UTF8
-
send
public void send(String data, Charset charset)
Description copied from interface:SenderWrite the given String using async IO, and ends the exchange when done
-
transferFrom
public void transferFrom(FileChannel source, IoCallback callback)
Description copied from interface:SenderTransfers all content from the specified file- Specified by:
transferFromin interfaceSender- Parameters:
source- the file channel to transfercallback- The callback
-
close
public void close(IoCallback callback)
Description copied from interface:SenderCloses this sender asynchronously. The given callback is notified on completion
-
-