Package io.undertow.servlet.core
Class BlockingWriterSenderImpl
java.lang.Object
io.undertow.servlet.core.BlockingWriterSenderImpl
- All Implemented Interfaces:
io.undertow.io.Sender
A sender that uses a print writer.
In general this should never be used. It exists for the edge case where a filter has called
getWriter() and then the default servlet is being used to serve a text file.
- Author:
- Stuart Douglas
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
TODO: we should be used pooled buffers -
Constructor Summary
ConstructorsConstructorDescriptionBlockingWriterSenderImpl
(io.undertow.server.HttpServerExchange exchange, PrintWriter writer, String charset) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
close
(io.undertow.io.IoCallback callback) void
void
void
void
void
send
(ByteBuffer buffer) void
send
(ByteBuffer[] buffer) void
send
(ByteBuffer[] buffer, io.undertow.io.IoCallback callback) void
send
(ByteBuffer buffer, io.undertow.io.IoCallback callback) void
transferFrom
(FileChannel source, io.undertow.io.IoCallback callback)
-
Field Details
-
BUFFER_SIZE
public static final int BUFFER_SIZETODO: we should be used pooled buffers- See Also:
-
-
Constructor Details
-
BlockingWriterSenderImpl
public BlockingWriterSenderImpl(io.undertow.server.HttpServerExchange exchange, PrintWriter writer, String charset)
-
-
Method Details
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
send
- Specified by:
send
in interfaceio.undertow.io.Sender
-
transferFrom
- Specified by:
transferFrom
in interfaceio.undertow.io.Sender
-
close
public void close(io.undertow.io.IoCallback callback) - Specified by:
close
in interfaceio.undertow.io.Sender
-
close
public void close()- Specified by:
close
in interfaceio.undertow.io.Sender
-