Class ResponseCachingSender
- java.lang.Object
-
- io.undertow.server.handlers.cache.ResponseCachingSender
-
-
Constructor Summary
Constructors Constructor Description ResponseCachingSender(Sender delegate, DirectBufferCache.CacheEntry cacheEntry, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this sender asynchronouslyvoid
close(IoCallback callback)
Closes this sender asynchronously.void
send(String data)
Write the given String using async IO, and ends the exchange when donevoid
send(String data, IoCallback callback)
Write the given String using async IO, and calls the given callback on completion or error.void
send(String data, Charset charset)
Write the given String using async IO, and ends the exchange when donevoid
send(String data, Charset charset, IoCallback callback)
Write the given String using async IO, and calls the given callback on completion or error.void
send(ByteBuffer src)
Write the given buffer using async IO, and ends the exchange when donevoid
send(ByteBuffer[] srcs)
Write the given buffers using async IO, and ends the exchange when donevoid
send(ByteBuffer[] srcs, IoCallback callback)
Write the given buffers using async IO, and calls the given callback on completion or error.void
send(ByteBuffer src, IoCallback callback)
Write the given buffer using async IO, and calls the given callback on completion or error.void
transferFrom(FileChannel channel, IoCallback callback)
Transfers all content from the specified file
-
-
-
Constructor Detail
-
ResponseCachingSender
public ResponseCachingSender(Sender delegate, DirectBufferCache.CacheEntry cacheEntry, long length)
-
-
Method Detail
-
send
public void send(ByteBuffer src, IoCallback callback)
Description copied from interface:Sender
Write the given buffer using async IO, and calls the given callback on completion or error.
-
send
public void send(ByteBuffer[] srcs, IoCallback callback)
Description copied from interface:Sender
Write the given buffers using async IO, and calls the given callback on completion or error.
-
send
public void send(ByteBuffer src)
Description copied from interface:Sender
Write the given buffer using async IO, and ends the exchange when done
-
send
public void send(ByteBuffer[] srcs)
Description copied from interface:Sender
Write the given buffers using async IO, and ends the exchange when done
-
send
public void send(String data, IoCallback callback)
Description copied from interface:Sender
Write 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:Sender
Write 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:Sender
Write 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:Sender
Write the given String using async IO, and ends the exchange when done
-
transferFrom
public void transferFrom(FileChannel channel, IoCallback callback)
Description copied from interface:Sender
Transfers all content from the specified file- Specified by:
transferFrom
in interfaceSender
- Parameters:
channel
- the file channel to transfercallback
- The callback
-
close
public void close(IoCallback callback)
Description copied from interface:Sender
Closes this sender asynchronously. The given callback is notified on completion
-
-