Uses of Interface
io.helidon.common.buffers.BufferData
Package
Description
Byte buffers and byte operations.
Socket abstraction and data writing.
HTTP APIs and implementations usable by both server and client side of the HTTP story.
Helidon Common HTTP/2 classes.
Helidon Media Support.
Helidon WebClient APIs shared by all types of clients.
Helidon WebClient HTTP/2 Support.
Helidon WebClient WebSocket Support.
Helidon WebServer HTTP specific APIs.
Helidon WebServer HTTP/1.1 specific APIs.
Helidon WebServer HTTP/2 Support.
Helidon WebServer HTTP/2 SPI.
Helidon WebServer SPI.
Helidon WebServer Testing JUnit5 Support.
WebSocket server support.
WebSocket APIs.
-
Uses of BufferData in io.helidon.common.buffers
Modifier and TypeInterfaceDescriptioninterface
Composite (mutable) buffer data.Modifier and TypeMethodDescriptionBufferData.clear()
Reset read and write position and make the buffer empty.default BufferData
BufferData.copy()
Copy the underlying data into a new buffer that does not retain any reference.static BufferData
BufferData.create
(byte[] bytes) Fixed size buffer data fully written.static BufferData
BufferData.create
(byte[] bytes, int position, int length) Fixed size buffer data fully written.static BufferData
BufferData.create
(int length) Fixed size buffer data.static BufferData
BufferData.create
(BufferData... data) Buffer data mapping multiple buffers.static BufferData
Create buffer data from a string.static BufferData
BufferData.create
(List<BufferData> data) Create composite buffer data from a list.static BufferData
BufferData.createReadOnly
(byte[] bytes, int offset, int length) Fixed size buffer data fully written.static BufferData
BufferData.empty()
Empty buffer data.DataReader.getBuffer
(int length) Get the next buffer of the requested size without moving position.static BufferData
BufferData.growing
(int initialLength) Growing buffer data.DataReader.readBuffer()
Read next buffer.DataReader.readBuffer
(int length) Read next buffer of defined size.BufferData.reset()
Reset read and write position of this buffer.BufferData.rewind()
Set read position to 0, so others may read the same data from the start.BufferData.trim
(int x) Trim the last x bytes from a buffer (remove them).BufferData.write
(int value) Write a byte.default BufferData
BufferData.writeHpackInt
(int value, int prefixedInt, int bitPrefix) Write hpack integer to this buffer.default BufferData
BufferData.writeInt16
(int number) Write 16-bit integer.default BufferData
BufferData.writeInt24
(int number) Write 24-bit integer.default BufferData
BufferData.writeInt32
(int number) Write 32-bit integer.default BufferData
BufferData.writeInt8
(int number) Write 8-bit integer.default BufferData
BufferData.writeUnsignedInt32
(long number) Write 32-bit unsigned integer.Modifier and TypeMethodDescriptionCompositeBufferData.add
(BufferData bufferData) Add this buffer to the list of buffers already in this composite buffer.static BufferData
BufferData.create
(BufferData... data) Buffer data mapping multiple buffers.static CompositeBufferData
BufferData.createComposite
(BufferData first) Composite buffer data that are mutable with initial value.default void
DataListener.data
(T ctx, BufferData data) Data received or sent.default void
BufferData.write
(BufferData toWrite) Write the provided buffer to this buffer.void
BufferData.write
(BufferData toWrite, int length) Write n bytes from the provided buffer to this buffer.void
DataWriter.write
(BufferData buffer) Write buffer, may delay writing and may write on a different thread.void
DataWriter.write
(BufferData... buffers) Write buffers, may delay writing and may write on a different thread.void
DataWriter.writeNow
(BufferData buffer) Write buffer to underlying transport blocking until the buffer is written.void
DataWriter.writeNow
(BufferData... buffers) Write buffers to underlying transport blocking until the buffers are written.Modifier and TypeMethodDescriptionstatic BufferData
BufferData.create
(List<BufferData> data) Create composite buffer data from a list. -
Uses of BufferData in io.helidon.common.socket
Modifier and TypeMethodDescriptionint
HelidonSocket.read
(BufferData buffer) Read bytes from the socket.int
PlainSocket.read
(BufferData buffer) void
HelidonSocket.write
(BufferData buffer) Write teh buffer to the underlying socket.void
PlainSocket.write
(BufferData buffer) void
SmartSocketWriter.write
(BufferData buffer) void
SmartSocketWriter.write
(BufferData... buffers) void
SocketWriter.writeNow
(BufferData buffer) void
SocketWriter.writeNow
(BufferData... buffers) -
Uses of BufferData in io.helidon.http
Modifier and TypeMethodDescriptiondefault void
Header.writeHttp1Header
(BufferData buffer) Write the current header as an HTTP header to the provided buffer. -
Uses of BufferData in io.helidon.http.http2
Modifier and TypeMethodDescriptionHttp2FrameData.data()
Returns the value of thedata
record component.Http2Ping.data()
Underlying buffer.static BufferData
Http2Util.prefaceData()
HTTP/2 preface data as a buffer data.Http2FrameHeader.write()
Write this header as buffer data.Modifier and TypeMethodDescriptionstatic Http2Continuation
Http2Continuation.create
(BufferData data) Create continuation from frame data.static Http2DataFrame
Http2DataFrame.create
(BufferData bufferData) Create data frame from buffer.static Http2FrameHeader
Http2FrameHeader.create
(BufferData bytes) Create a header from header bytes.static Http2GoAway
Http2GoAway.create
(BufferData frame) Create a go away frame from frame data.static Http2Ping
Http2Ping.create
(BufferData data) Create ping from buffer.static Http2Priority
Http2Priority.create
(BufferData frame) Create priority frame from frame data.static Http2RstStream
Http2RstStream.create
(BufferData bufferData) Create a RST stream from frame data.static Http2Settings
Http2Settings.create
(BufferData frame) Settings frame from frame data.static Http2WindowUpdate
Http2WindowUpdate.create
(BufferData bufferData) Create from frame data.void
Http2Stream.data
(Http2FrameHeader header, BufferData data, boolean endOfStream) Data frame.Http2HuffmanDecoder.decodeString
(BufferData data, int length) Decode string.default void
Http2FrameListener.frame
(SocketContext ctx, int streamId, BufferData data) Frame data.void
Http2LoggingFrameListener.frame
(SocketContext ctx, int streamId, BufferData data) default void
Http2FrameListener.frameHeader
(SocketContext ctx, int streamId, BufferData frameHeader) Frame header data.void
Http2LoggingFrameListener.frameHeader
(SocketContext ctx, int streamId, BufferData headerData) Http2Setting.read
(BufferData frame) Read setting value from the frame buffer.void
Http2Headers.write
(Http2Headers.DynamicTable table, Http2HuffmanEncoder huffman, BufferData growingBuffer) Write headers to a buffer.void
Http2Setting.write
(BufferData data, T value) Write setting to the provided buffer.ModifierConstructorDescriptionHttp2FrameData
(Http2FrameHeader header, BufferData data) Creates an instance of aHttp2FrameData
record class. -
Uses of BufferData in io.helidon.http.media
Modifier and TypeMethodDescriptionprotected Function
<Integer, BufferData> ReadableEntityBase.readEntityFunction()
Function to request entity bytes.ModifierConstructorDescriptionprotected
ReadableEntityBase
(Consumer<Boolean> entityRequestedCallback, Function<Integer, BufferData> readEntityFunction, Runnable entityProcessedRunnable) protected
ReadableEntityBase
(Function<Integer, BufferData> readEntityFunction, Runnable entityProcessedRunnable) Create a new base. -
Uses of BufferData in io.helidon.webclient.api
Modifier and TypeMethodDescriptionstatic ClientResponseEntity
ClientResponseEntity.create
(Function<Integer, BufferData> readEntityFunction, Runnable entityProcessedRunnable, ClientRequestHeaders requestHeaders, ClientResponseHeaders responseHeaders, MediaContext mediaContext) Create a new client response entity. -
Uses of BufferData in io.helidon.webclient.http2
Modifier and TypeMethodDescriptionvoid
Http2ClientStream.data
(Http2FrameHeader header, BufferData data, boolean endOfStream) void
Http2ClientStream.writeData
(BufferData entityBytes, boolean endOfStream) Writes a buffer data into the stream. -
Uses of BufferData in io.helidon.webclient.websocket
Modifier and TypeMethodDescriptionClientWsConnection.ping
(BufferData bufferData) ClientWsConnection.pong
(BufferData bufferData) ClientWsConnection.send
(BufferData bufferData, boolean last) -
Uses of BufferData in io.helidon.webserver.http
Modifier and TypeMethodDescriptionstatic ServerRequestEntity
ServerRequestEntity.create
(Consumer<Boolean> entityRequestedCallback, UnaryOperator<InputStream> streamFilter, ContentDecoder decoder, Function<Integer, BufferData> readEntityFunction, Runnable entityProcessedRunnable, ServerRequestHeaders requestHeaders, MediaContext mediaContext) Create a new entity. -
Uses of BufferData in io.helidon.webserver.http1
Modifier and TypeMethodDescriptionvoid
Http1LoggingConnectionListener.data
(ConnectionContext ctx, BufferData data) Http1ConnectionSelector.supports
(BufferData request) -
Uses of BufferData in io.helidon.webserver.http2
Modifier and TypeMethodDescriptionstatic Http2ServerRequestEntity
Http2ServerRequestEntity.create
(UnaryOperator<InputStream> streamFilter, UnaryOperator<InputStream> decoder, Function<Integer, BufferData> readEntityFunction, Runnable entityProcessedRunnable, ServerRequestHeaders requestHeaders, MediaContext mediaContext) Create a new entity. -
Uses of BufferData in io.helidon.webserver.http2.spi
Modifier and TypeMethodDescriptionvoid
Http2SubProtocolSelector.SubProtocolHandler.data
(Http2FrameHeader header, BufferData data) Data was received. -
Uses of BufferData in io.helidon.webserver.spi
Modifier and TypeMethodDescriptionServerConnectionSelector.supports
(BufferData data) Does this selector support current server connection. -
Uses of BufferData in io.helidon.webserver.testing.junit5
Modifier and TypeMethodDescriptionint
DirectSocket.read
(BufferData buffer) void
DirectSocket.write
(BufferData buffer) -
Uses of BufferData in io.helidon.webserver.websocket
Modifier and TypeMethodDescriptionWsConnection.ping
(BufferData bufferData) WsConnection.pong
(BufferData bufferData) WsConnection.send
(BufferData bufferData, boolean last) -
Uses of BufferData in io.helidon.websocket
Modifier and TypeMethodDescriptionClientWsFrame.maskedData()
Masked data of this frame, to be sent over the network.WsFrame.payloadData()
Always unmasked.Modifier and TypeMethodDescriptionstatic ClientWsFrame
ClientWsFrame.control
(WsOpCode opCode, BufferData bufferData) Create a new control frame.static ServerWsFrame
ServerWsFrame.control
(WsOpCode opCode, BufferData bufferData) Create a new control frame.static ClientWsFrame
ClientWsFrame.data
(BufferData bufferData, boolean last) Create a binary data frame.static ServerWsFrame
ServerWsFrame.data
(BufferData bufferData, boolean last) Create a binary data frame.default void
WsListener.onMessage
(WsSession session, BufferData buffer, boolean last) Received binary fragment.default void
WsListener.onPing
(WsSession session, BufferData buffer) Received ping.default void
WsListener.onPong
(WsSession session, BufferData buffer) Received pong.WsSession.ping
(BufferData bufferData) Send ping.WsSession.pong
(BufferData bufferData) Send pong.WsSession.send
(BufferData bufferData, boolean last) Send binary fragment.