Uses of Class
net.officefloor.server.stream.StreamBuffer
-
-
Uses of StreamBuffer in net.officefloor.server
Methods in net.officefloor.server with parameters of type StreamBuffer Modifier and Type Method Description void
RequestHandler. sendImmediateData(StreamBuffer<java.nio.ByteBuffer> immediateHead)
Sends data immediately.void
SocketServicer. service(StreamBuffer<java.nio.ByteBuffer> readBuffer, long bytesRead, boolean isNewBuffer)
Services theSocket
.void
ResponseHeaderWriter. write(StreamBuffer<java.nio.ByteBuffer> head, StreamBufferPool<java.nio.ByteBuffer> bufferPool)
Writes the header content.void
ResponseWriter. write(ResponseHeaderWriter responseHeaderWriter, StreamBuffer<java.nio.ByteBuffer> headResponseBuffer)
Writes theStreamBuffer
instances as the response. -
Uses of StreamBuffer in net.officefloor.server.aws.sam
Methods in net.officefloor.server.aws.sam with parameters of type StreamBuffer Modifier and Type Method Description void
SamHttpResponseWriter. writeHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<java.nio.ByteBuffer> contentHeadStreamBuffer)
-
Uses of StreamBuffer in net.officefloor.server.buffer
Methods in net.officefloor.server.buffer with parameters of type StreamBuffer Modifier and Type Method Description void
StreamBufferByteSequence. appendStreamBuffer(StreamBuffer<java.nio.ByteBuffer> buffer, int offset, int length)
Appends aStreamBuffer
to thisByteSequence
.void
StreamBufferScanner. appendStreamBuffer(StreamBuffer<java.nio.ByteBuffer> buffer)
AppendsStreamBuffer
for scanning.Constructors in net.officefloor.server.buffer with parameters of type StreamBuffer Constructor Description StreamBufferByteSequence(StreamBuffer<java.nio.ByteBuffer> buffer, int offset, int length)
Instantiate with the firstStreamBuffer
. -
Uses of StreamBuffer in net.officefloor.server.http
Methods in net.officefloor.server.http with parameters of type StreamBuffer Modifier and Type Method Description <B> void
HttpHeaderName. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeaderName
to theStreamBuffer
.<B> void
HttpHeaderValue. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeaderValue
to theStreamBuffer
.<B> void
HttpStatus. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpStatus
to theStreamBuffer
.<B> void
HttpVersion. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpStatus
to theStreamBuffer
.<B> void
WritableHttpCookie. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes this HTTP Cookie to theStreamBuffer
stream.<B> void
WritableHttpHeader. write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeader
to theStreamBuffer
.<B> void
HttpException. writeHttpResponse(HttpVersion version, boolean isIncludeStackTrace, StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes the HTTP response for thisHttpException
.void
HttpResponseWriter. writeHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<B> contentHeadStreamBuffer)
Writes theHttpResponse
. -
Uses of StreamBuffer in net.officefloor.server.http.mock
Methods in net.officefloor.server.http.mock that return StreamBuffer Modifier and Type Method Description StreamBuffer<java.nio.ByteBuffer>
MockStreamBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)
StreamBuffer<java.nio.ByteBuffer>
MockStreamBufferPool. getPooledStreamBuffer()
StreamBuffer<java.nio.ByteBuffer>
MockStreamBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer byteBuffer)
Methods in net.officefloor.server.http.mock with parameters of type StreamBuffer Modifier and Type Method Description static java.io.InputStream
MockStreamBufferPool. createInputStream(StreamBuffer<java.nio.ByteBuffer> headBuffer)
Creates anInputStream
to the content of theStreamBuffer
instances.static java.lang.String
MockStreamBufferPool. getContent(StreamBuffer<java.nio.ByteBuffer> headBuffer, java.nio.charset.Charset charset)
Convenience method to obtain the contents of the buffers as a string.static void
MockStreamBufferPool. releaseStreamBuffers(StreamBuffer<java.nio.ByteBuffer> headBuffer)
Releases theStreamBuffer
instances. -
Uses of StreamBuffer in net.officefloor.server.http.netty
Subclasses of StreamBuffer in net.officefloor.server.http.netty Modifier and Type Class Description class
NettyBufferPool
NettyStreamBufferPool
.Methods in net.officefloor.server.http.netty that return StreamBuffer Modifier and Type Method Description StreamBuffer<io.netty.buffer.ByteBuf>
NettyBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)
StreamBuffer<io.netty.buffer.ByteBuf>
NettyBufferPool. getPooledStreamBuffer()
StreamBuffer<io.netty.buffer.ByteBuf>
NettyBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer buffer)
-
Uses of StreamBuffer in net.officefloor.server.http.servlet
Methods in net.officefloor.server.http.servlet with parameters of type StreamBuffer Modifier and Type Method Description void
HttpServletHttpResponseWriter. writeHttpResponse(HttpVersion version, HttpStatus status, WritableHttpHeader headHttpHeader, WritableHttpCookie headHttpCookie, long contentLength, HttpHeaderValue contentType, StreamBuffer<java.nio.ByteBuffer> contentHeadStreamBuffer)
-
Uses of StreamBuffer in net.officefloor.server.stream
Fields in net.officefloor.server.stream declared as StreamBuffer Modifier and Type Field Description StreamBuffer<B>
StreamBuffer. next
NextStreamBuffer
in the stream.Methods in net.officefloor.server.stream that return StreamBuffer Modifier and Type Method Description StreamBuffer<B>
StreamBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)
Obtains aStreamBuffer
for theFileChannel
content.StreamBuffer<B>
StreamBufferPool. getPooledStreamBuffer()
Obtains aStreamBuffer
.StreamBuffer<B>
StreamBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer buffer)
Obtains anStreamBuffer
that is not pooled.static <B> StreamBuffer<B>
StreamBuffer. getWriteStreamBuffer(StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)
Obtains theStreamBuffer
to use for writing.static <B> StreamBuffer<B>
StreamBuffer. writeByte(byte character, StreamBuffer<B> writeBuffer, StreamBufferPool<B> bufferPool)
Writes a HTTP encoded character.Methods in net.officefloor.server.stream with parameters of type StreamBuffer Modifier and Type Method Description static <B> java.lang.Appendable
StreamBuffer. getAppendable(StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)
Obtains anAppendable
to write to theStreamBuffer
stream.static <B> StreamBuffer<B>
StreamBuffer. getWriteStreamBuffer(StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)
Obtains theStreamBuffer
to use for writing.static <B> void
StreamBuffer. write(byte[] bytes, int offset, int length, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)
Writes the bytes to theStreamBuffer
stream.static <B> void
StreamBuffer. write(byte[] bytes, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)
Writes all the bytes to theStreamBuffer
stream.static <B> void
StreamBuffer. write(long value, StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes a long value to theStreamBuffer
.static <B> void
StreamBuffer. write(java.lang.CharSequence characters, int offset, int length, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)
Writes theCharSequence
to theStreamBuffer
stream.static <B> void
StreamBuffer. write(java.lang.CharSequence characters, StreamBuffer<B> headBuffer, StreamBufferPool<B> bufferPool)
Writes all theCharSequence
to theStreamBuffer
stream.static <B> StreamBuffer<B>
StreamBuffer. writeByte(byte character, StreamBuffer<B> writeBuffer, StreamBufferPool<B> bufferPool)
Writes a HTTP encoded character. -
Uses of StreamBuffer in net.officefloor.server.stream.impl
Subclasses of StreamBuffer in net.officefloor.server.stream.impl Modifier and Type Class Description protected class
AbstractStreamBufferPool.FileStreamBuffer
FileChannel
StreamBuffer
.protected class
AbstractStreamBufferPool.UnpooledStreamBuffer
UnpooledStreamBuffer
.Methods in net.officefloor.server.stream.impl that return StreamBuffer Modifier and Type Method Description StreamBuffer<B>
BufferPoolServerOutputStream. getBuffers()
Obtains the headStreamBuffer
instances used by thisServerOutputStream
.StreamBuffer<B>
AbstractStreamBufferPool. getFileStreamBuffer(java.nio.channels.FileChannel file, long position, long count, FileCompleteCallback callback)
StreamBuffer<java.nio.ByteBuffer>
ThreadLocalStreamBufferPool. getPooledStreamBuffer()
=============== StreamBufferPool ===========================StreamBuffer<B>
AbstractStreamBufferPool. getUnpooledStreamBuffer(java.nio.ByteBuffer buffer)
-