Uses of Interface
org.glassfish.grizzly.Buffer
-
-
Uses of Buffer in org.glassfish.grizzly
Methods in org.glassfish.grizzly that return Buffer Modifier and Type Method Description BufferBuffer. asReadOnlyBuffer()Creates a new, read-onlyBufferthat shares this buffer's content.BufferBuffer. clear()Clears this buffer.BufferBuffer. compact()Compacts this buffer (optional operation).BufferBuffer. duplicate()Creates a newBufferthat shares this buffer's content.BufferBuffer. flip()Flips this buffer.BufferBuffer. get(byte[] dst)Relative bulk get method.BufferBuffer. get(byte[] dst, int offset, int length)Relative bulk get method.BufferBuffer. get(java.nio.ByteBuffer dst)Relative bulk get method.BufferBuffer. get(java.nio.ByteBuffer dst, int offset, int length)Relative bulk get method.BufferBuffer. limit(int newLimit)Sets this buffer's limit.BufferBuffer. mark()Sets this buffer's mark at its position.BufferBuffer. order(java.nio.ByteOrder bo)Modifies this buffer's byte order.BufferBuffer. position(int newPosition)Sets this buffer's position.BufferBuffer. prepend(Buffer header)Prepend data from header.position() to header.limit() to the current buffer.BufferBuffer. put(byte b)Relative put method (optional operation).BufferBuffer. put(byte[] src)Relative bulk put method (optional operation).BufferBuffer. put(byte[] src, int offset, int length)Relative bulk put method (optional operation).BufferBuffer. put(int index, byte b)Absolute put method (optional operation).BufferBuffer. put(java.nio.ByteBuffer src)Relative bulk put method (optional operation).BufferBuffer. put(java.nio.ByteBuffer src, int position, int length)Relative bulk put method (optional operation).BufferBuffer. put(Buffer src)Relative bulk put method (optional operation).BufferBuffer. put(Buffer src, int position, int length)Relative bulk put method (optional operation).BufferBuffer. put8BitString(java.lang.String s)Relative bulk put method (optional operation).BufferBuffer. putChar(char value)Relative put method for writing a char value (optional operation).BufferBuffer. putChar(int index, char value)Absolute put method for writing a char value (optional operation).BufferBuffer. putDouble(double value)Relative put method for writing a double value (optional operation).BufferBuffer. putDouble(int index, double value)Absolute put method for writing a double value (optional operation).BufferBuffer. putFloat(float value)Relative put method for writing a float value (optional operation).BufferBuffer. putFloat(int index, float value)Absolute put method for writing a float value (optional operation).BufferBuffer. putInt(int value)Relative put method for writing an int value (optional operation).BufferBuffer. putInt(int index, int value)Absolute put method for writing an int value (optional operation).BufferBuffer. putLong(int index, long value)Absolute put method for writing a long value (optional operation).BufferBuffer. putLong(long value)Relative put method for writing a long value (optional operation).BufferBuffer. putShort(int index, short value)Absolute put method for writing a short value (optional operation).BufferBuffer. putShort(short value)Relative put method for writing a short value (optional operation).BufferBuffer. reset()Resets this buffer's position to the previously-marked position.BufferBuffer. rewind()Rewinds this buffer.BufferBuffer. slice()Creates a newBufferwhose content is a shared subsequence of this buffer's content.BufferBuffer. slice(int position, int limit)Creates a newBufferwhose content is a shared subsequence of this buffer's content.BufferBuffer. split(int splitPosition)Split up the buffer into two parts: [0..splitPosition) and [splitPosition, capacity).Methods in org.glassfish.grizzly that return types with arguments of type Buffer Modifier and Type Method Description GrizzlyFuture<ReadResult<Buffer,L>>AbstractReader. read(Connection<L> connection)Method reads data.GrizzlyFuture<ReadResult<Buffer,L>>AbstractReader. read(Connection<L> connection, Buffer buffer)Method reads data to the buffer.GrizzlyFuture<ReadResult<Buffer,L>>Reader. read(Connection<L> connection)Method reads data.GrizzlyFuture<ReadResult<Buffer,L>>Reader. read(Connection<L> connection, Buffer buffer)Method reads data to the buffer.Methods in org.glassfish.grizzly with parameters of type Buffer Modifier and Type Method Description voidConnectionProbe.Adapter. onReadEvent(Connection connection, Buffer data, int size)Method will be called, when theConnectionhas read data.voidConnectionProbe. onReadEvent(Connection connection, Buffer data, int size)Method will be called, when theConnectionhas read data.voidConnectionProbe.Adapter. onWriteEvent(Connection connection, Buffer data, long size)Method will be called, when theConnectionhas written data.voidConnectionProbe. onWriteEvent(Connection connection, Buffer data, long size)Method will be called, when theConnectionhas written data.BufferBuffer. prepend(Buffer header)Prepend data from header.position() to header.limit() to the current buffer.BufferBuffer. put(Buffer src)Relative bulk put method (optional operation).BufferBuffer. put(Buffer src, int position, int length)Relative bulk put method (optional operation).GrizzlyFuture<ReadResult<Buffer,L>>AbstractReader. read(Connection<L> connection, Buffer buffer)Method reads data to the buffer.voidAbstractReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)Method reads data to the buffer.GrizzlyFuture<ReadResult<Buffer,L>>Reader. read(Connection<L> connection, Buffer buffer)Method reads data to the buffer.voidReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)Method reads data to the buffer.voidReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler, Interceptor<ReadResult> interceptor)Method reads data to the buffer.Method parameters in org.glassfish.grizzly with type arguments of type Buffer Modifier and Type Method Description voidAbstractReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)Method reads data to the buffer.voidReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler)Method reads data to the buffer.voidReader. read(Connection<L> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,L>> completionHandler, Interceptor<ReadResult> interceptor)Method reads data to the buffer. -
Uses of Buffer in org.glassfish.grizzly.asyncqueue
Methods in org.glassfish.grizzly.asyncqueue with parameters of type Buffer Modifier and Type Method Description static AsyncReadQueueRecordAsyncReadQueueRecord. create(Connection connection, Buffer message, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor) -
Uses of Buffer in org.glassfish.grizzly.compression.lzma
Methods in org.glassfish.grizzly.compression.lzma that return Buffer Modifier and Type Method Description BufferLZMADecoder.LZMAInputState. getDst()BufferLZMAEncoder.LZMAOutputState. getDst()BufferLZMADecoder.LZMAInputState. getSrc()BufferLZMAEncoder.LZMAOutputState. getSrc()Methods in org.glassfish.grizzly.compression.lzma that return types with arguments of type Buffer Modifier and Type Method Description protected AbstractTransformer.LastResultAwareState<Buffer,Buffer>LZMADecoder. createStateObject()protected AbstractTransformer.LastResultAwareState<Buffer,Buffer>LZMADecoder. createStateObject()protected AbstractTransformer.LastResultAwareState<Buffer,Buffer>LZMAEncoder. createStateObject()protected AbstractTransformer.LastResultAwareState<Buffer,Buffer>LZMAEncoder. createStateObject()protected TransformationResult<Buffer,Buffer>LZMADecoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>LZMADecoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>LZMAEncoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>LZMAEncoder. transformImpl(AttributeStorage storage, Buffer input)Methods in org.glassfish.grizzly.compression.lzma with parameters of type Buffer Modifier and Type Method Description booleanLZMADecoder. hasInputRemaining(AttributeStorage storage, Buffer input)booleanLZMAEncoder. hasInputRemaining(AttributeStorage storage, Buffer input)booleanLZMADecoder.LZMAInputState. initialize(Buffer buffer)voidLZMADecoder.LZMAInputState. setDst(Buffer dst)voidLZMAEncoder.LZMAOutputState. setDst(Buffer dst)voidLZMADecoder.LZMAInputState. setSrc(Buffer src)voidLZMAEncoder.LZMAOutputState. setSrc(Buffer src)protected TransformationResult<Buffer,Buffer>LZMADecoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>LZMAEncoder. transformImpl(AttributeStorage storage, Buffer input) -
Uses of Buffer in org.glassfish.grizzly.compression.lzma.impl
Methods in org.glassfish.grizzly.compression.lzma.impl with parameters of type Buffer Modifier and Type Method Description voidEncoder. writeCoderProperties(Buffer dst) -
Uses of Buffer in org.glassfish.grizzly.compression.lzma.impl.lz
Methods in org.glassfish.grizzly.compression.lzma.impl.lz with parameters of type Buffer Modifier and Type Method Description voidInWindow. setBuffer(Buffer buffer) -
Uses of Buffer in org.glassfish.grizzly.compression.lzma.impl.rangecoder
Methods in org.glassfish.grizzly.compression.lzma.impl.rangecoder that return Buffer Modifier and Type Method Description BufferRangeEncoder. releaseBuffer()Methods in org.glassfish.grizzly.compression.lzma.impl.rangecoder with parameters of type Buffer Modifier and Type Method Description voidRangeEncoder. setBuffer(Buffer dst, MemoryManager mm) -
Uses of Buffer in org.glassfish.grizzly.compression.zip
Methods in org.glassfish.grizzly.compression.zip that return Buffer Modifier and Type Method Description protected BufferGZipEncoder. deflate(java.util.zip.Deflater deflater, MemoryManager memoryManager)Writes next block of compressed data to the output stream.BufferGZipEncoder. finish(AttributeStorage storage)Finishes to compress data to the output stream without closing the underlying stream.Methods in org.glassfish.grizzly.compression.zip that return types with arguments of type Buffer Modifier and Type Method Description protected TransformationResult<Buffer,Buffer>GZipDecoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>GZipDecoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>GZipEncoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>GZipEncoder. transformImpl(AttributeStorage storage, Buffer input)Methods in org.glassfish.grizzly.compression.zip with parameters of type Buffer Modifier and Type Method Description booleanGZipDecoder. hasInputRemaining(AttributeStorage storage, Buffer input)booleanGZipEncoder. hasInputRemaining(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>GZipDecoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>GZipEncoder. transformImpl(AttributeStorage storage, Buffer input) -
Uses of Buffer in org.glassfish.grizzly.http
Fields in org.glassfish.grizzly.http declared as Buffer Modifier and Type Field Description protected BufferHttpContent.Builder. contentprotected BufferHttpContent. contentMethods in org.glassfish.grizzly.http that return Buffer Modifier and Type Method Description BufferCookie. asClientCookieBuffer()BufferCookie. asClientCookieBuffer(MemoryManager memoryManager)BufferCookie. asServerCookieBuffer()BufferCookie. asServerCookieBuffer(MemoryManager memoryManager)protected BufferHttpClientFilter. encodeHttpPacket(FilterChainContext ctx, HttpPacket input)protected BufferHttpCodecFilter. encodeHttpPacket(FilterChainContext ctx, HttpHeader httpHeader, HttpContent httpContent, boolean isContentAlreadyEncoded)protected BufferHttpCodecFilter. encodeHttpPacket(FilterChainContext ctx, HttpPacket input)protected BufferHttpServerFilter. encodeHttpPacket(FilterChainContext ctx, HttpPacket input)protected static BufferHttpCodecFilter. encodeKnownHeaders(MemoryManager memoryManager, Buffer buffer, HttpHeader httpHeader)protected static BufferHttpCodecFilter. encodeMimeHeader(MemoryManager memoryManager, Buffer buffer, DataChunk name, DataChunk value, byte[] tempBuffer, boolean encodeLastCRLF)protected static BufferHttpCodecFilter. encodeMimeHeaders(MemoryManager memoryManager, Buffer buffer, MimeHeaders mimeHeaders, byte[] tempEncodingBuffer)BufferHttpBrokenContent. getContent()Get the HTTP message contentBuffer.BufferHttpContent. getContent()Get the HTTP message contentBuffer.BufferParsingResult. getRemainderBuffer()BufferChunkedTransferEncoding. serializePacket(FilterChainContext ctx, HttpContent httpContent)Serialize HTTP packet payload, represented byHttpContentusing specific transfer encoding.BufferFixedLengthTransferEncoding. serializePacket(FilterChainContext ctx, HttpContent httpContent)Serialize HTTP packet payload, represented byHttpContentusing specific transfer encoding.BufferTransferEncoding. serializePacket(FilterChainContext ctx, HttpContent httpContent)Serialize HTTP packet payload, represented byHttpContentusing specific transfer encoding.Methods in org.glassfish.grizzly.http with parameters of type Buffer Modifier and Type Method Description THttpContent.Builder. content(Buffer content)Set the HttpContent chunk contentBuffer.static HttpContentHttpContent. create(HttpHeader httpHeader, boolean isLast, Buffer content)static ParsingResultParsingResult. create(HttpContent httpContent, Buffer remainderBuffer)static ParsingResultParsingResult. create(HttpContent httpContent, Buffer remainderBuffer, boolean sendHeaderUpstream)protected booleanHttpCodecFilter. decodeHttpPacket(FilterChainContext ctx, HttpPacketParsing httpPacket, Buffer input)protected booleanHttpCodecFilter. decodeHttpPacketFromBuffer(FilterChainContext ctx, HttpPacketParsing httpPacket, Buffer input)protected booleanHttpCodecFilter. decodeHttpPacketFromBytes(FilterChainContext ctx, HttpPacketParsing httpPacket, Buffer inputBuffer)protected static BufferHttpCodecFilter. encodeKnownHeaders(MemoryManager memoryManager, Buffer buffer, HttpHeader httpHeader)protected static BufferHttpCodecFilter. encodeMimeHeader(MemoryManager memoryManager, Buffer buffer, DataChunk name, DataChunk value, byte[] tempBuffer, boolean encodeLastCRLF)protected static BufferHttpCodecFilter. encodeMimeHeaders(MemoryManager memoryManager, Buffer buffer, MimeHeaders mimeHeaders, byte[] tempEncodingBuffer)voidHttpProbe.Adapter. onContentEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)Method will be called, whenContentEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidHttpProbe. onContentEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)Method will be called, whenContentEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidHttpProbe.Adapter. onContentEncodingParseResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)This method will be called after theContentEncodinghas been applied.voidHttpProbe. onContentEncodingParseResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)This method will be called after theContentEncodinghas been applied.voidHttpProbe.Adapter. onContentEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)/** Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe. onContentEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)/** Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe.Adapter. onContentEncodingSerializeResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe. onContentEncodingSerializeResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe.Adapter. onDataReceivedEvent(Connection connection, Buffer buffer)Method will be called, whenBufferwill come for processing to theHttpCodecFilter(either request or response).voidHttpProbe. onDataReceivedEvent(Connection connection, Buffer buffer)Method will be called, whenBufferwill come for processing to theHttpCodecFilter(either request or response).voidHttpProbe.Adapter. onDataSentEvent(Connection connection, Buffer buffer)Method will be called, whenBuffer, produced by theHttpCodecFilterwill be ready to go to the nextFilterin the chain and finally written on wire.voidHttpProbe. onDataSentEvent(Connection connection, Buffer buffer)Method will be called, whenBuffer, produced by theHttpCodecFilterwill be ready to go to the nextFilterin the chain and finally written on wire.voidHttpProbe.Adapter. onHeaderSerializeEvent(Connection connection, HttpHeader header, Buffer buffer)Method will be called, when HTTP message header gets serialized (either request or response).voidHttpProbe. onHeaderSerializeEvent(Connection connection, HttpHeader header, Buffer buffer)Method will be called, when HTTP message header gets serialized (either request or response).protected booleanHttpClientFilter. onHttpHeaderParsed(HttpHeader httpHeader, Buffer buffer, FilterChainContext ctx)protected abstract booleanHttpCodecFilter. onHttpHeaderParsed(HttpHeader httpHeader, Buffer buffer, FilterChainContext ctx)Callback invoked when the HTTP message header parsing is complete.protected booleanHttpServerFilter. onHttpHeaderParsed(HttpHeader httpHeader, Buffer buffer, FilterChainContext ctx)voidHttpProbe.Adapter. onTransferEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)Method will be called, whenTransferEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidHttpProbe. onTransferEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)Method will be called, whenTransferEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidHttpProbe.Adapter. onTransferEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)Method will be called, whenTransferEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe. onTransferEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)Method will be called, whenTransferEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.abstract ECookiesBuilder.AbstractCookiesBuilder. parse(Buffer cookiesHeader)abstract ECookiesBuilder.AbstractCookiesBuilder. parse(Buffer cookiesHeader, int position, int limit)CookiesBuilder.ClientCookiesBuilderCookiesBuilder.ClientCookiesBuilder. parse(Buffer cookiesHeader)CookiesBuilder.ClientCookiesBuilderCookiesBuilder.ClientCookiesBuilder. parse(Buffer cookiesHeader, int position, int limit)CookiesBuilder.ServerCookiesBuilderCookiesBuilder.ServerCookiesBuilder. parse(Buffer cookiesHeader)CookiesBuilder.ServerCookiesBuilderCookiesBuilder.ServerCookiesBuilder. parse(Buffer cookiesHeader, int position, int limit)protected booleanHttpCodecFilter. parseHeaderFromBuffer(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, Buffer input)protected booleanHttpCodecFilter. parseHeaderName(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, Buffer input)protected booleanHttpCodecFilter. parseHeadersFromBuffer(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, Buffer input)protected static intHttpCodecFilter. parseHeaderValue(HttpHeader httpHeader, HttpCodecFilter.HeaderParsingState parsingState, Buffer input)ParsingResultChunkedTransferEncoding. parsePacket(FilterChainContext ctx, HttpHeader httpPacket, Buffer buffer)Parse HTTP packet payload, represented byBufferusing specific transfer encoding.ParsingResultFixedLengthTransferEncoding. parsePacket(FilterChainContext ctx, HttpHeader httpPacket, Buffer input)Parse HTTP packet payload, represented byBufferusing specific transfer encoding.ParsingResultTransferEncoding. parsePacket(FilterChainContext ctx, HttpHeader httpPacket, Buffer buffer)Parse HTTP packet payload, represented byBufferusing specific transfer encoding.protected voidHttpContent. setContent(Buffer content)voidHttpResponsePacket. setReasonPhrase(Buffer reason)static ProtocolProtocol. valueOf(Buffer protocolBuffer, int offset, int len)Constructors in org.glassfish.grizzly.http with parameters of type Buffer Constructor Description HttpContent(HttpHeader httpHeader, boolean isLast, Buffer content) -
Uses of Buffer in org.glassfish.grizzly.http.io
Methods in org.glassfish.grizzly.http.io that return Buffer Modifier and Type Method Description BufferBinaryNIOInputSource. getBuffer()Returns the the duplicate of the underlyingBufferthat backs thisInputSource.BufferInputBuffer. getBuffer()Returns the duplicate of the underlyingBufferused to buffer incoming request data.BufferBinaryNIOInputSource. readBuffer()Returns the underlyingBufferthat backs thisInputSource.BufferBinaryNIOInputSource. readBuffer(int size)BufferInputBuffer. readBuffer()BufferInputBuffer. readBuffer(int size)Methods in org.glassfish.grizzly.http.io with parameters of type Buffer Modifier and Type Method Description voidInputBuffer. replayPayload(Buffer buffer)protected voidInputBuffer. updateInputContentBuffer(Buffer buffer)voidBinaryNIOOutputSink. write(Buffer buffer)Writes the contents of the specifiedBuffer.voidOutputBuffer. writeBuffer(Buffer buffer)Writes the contents of the specifiedBufferto the client. -
Uses of Buffer in org.glassfish.grizzly.http.server
Methods in org.glassfish.grizzly.http.server that return Buffer Modifier and Type Method Description BufferRequest. getPostBody(int len)Gets the POST body of this request.Methods in org.glassfish.grizzly.http.server with parameters of type Buffer Modifier and Type Method Description voidRequest. replayPayload(Buffer buffer)Replays request's payload by setting new payloadBuffer. -
Uses of Buffer in org.glassfish.grizzly.http.server.io
Methods in org.glassfish.grizzly.http.server.io with parameters of type Buffer Modifier and Type Method Description protected voidServerInputBuffer. updateInputContentBuffer(Buffer buffer) -
Uses of Buffer in org.glassfish.grizzly.http.util
Methods in org.glassfish.grizzly.http.util that return Buffer Modifier and Type Method Description BufferBufferChunk. getBuffer()static BufferHttpCodecUtils. getLongAsBuffer(MemoryManager memoryManager, long length)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte value)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] array)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] array, int off, int len)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] tempBuffer, java.lang.String s)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] tempBuffer, DataChunk chunk)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, Buffer buffer)static BufferHttpCodecUtils. resizeBuffer(MemoryManager memoryManager, Buffer buffer, int grow)Methods in org.glassfish.grizzly.http.util with parameters of type Buffer Modifier and Type Method Description DataChunkMimeHeaders. addValue(Buffer buffer, int startN, int len)Create a new named header using un-translated Buffer.static intHttpCodecUtils. checkEOL(HttpCodecFilter.HeaderParsingState parsingState, Buffer input)static floatHttpUtils. convertQValueToFloat(Buffer buffer, int startIdx, int stopIdx)static booleanBufferChunk. equals(byte[] c, int cOff, int cLen, Buffer t, int tOff, int tLen)static booleanCookieUtils. equals(java.lang.String s, Buffer b, int start, int end)static booleanCookieUtils. equalsIgnoreCase(java.lang.String s, Buffer b, int start, int end)static booleanBufferChunk. equalsIgnoreCaseLowerCase(Buffer buffer, int start, int end, byte[] cmpTo)Compares the buffer chunk to the specified byte array representing lower-case ASCII characters.static booleanHttpCodecUtils. findEOL(HttpCodecFilter.HeaderParsingState state, Buffer input)static intHttpCodecUtils. findSpace(Buffer input, int offset, int packetLimit)static intCookieUtils. getQuotedValueEndPosition(Buffer buffer, int off, int end)Given a starting position after an initial quote character, this gets the position of the end quote.static intCookieUtils. getTokenEndPosition(Buffer buffer, int off, int end)Given the starting position of a token, this gets the end of the token, with no separator characters in between.static intCookieUtils. getTokenEndPosition(Buffer buffer, int off, int end, boolean parseAsVersion1)static intBufferChunk. indexOf(Buffer buffer, int off, int end, char qq)static intBufferChunk. indexOf(Buffer buffer, int off, int end, java.lang.CharSequence s)static intHttpCodecUtils. indexOf(Buffer input, int offset, byte b, int packetLimit)voidRequestURIRef. init(Buffer input, int start, int end)static voidAscii. intToHexString(Buffer buffer, int i)static voidAscii. intToUnsignedString(Buffer buffer, int value, int shift)Convert the integer to an unsigned number.static voidHttpUtils. longToBuffer(long value, Buffer buffer)Converts the specified long as a string representation to the provided buffer.static intCookieSerializerUtils. maybeQuote2(int version, Buffer buf, java.lang.String value, boolean versionOneStrictCompliance)Quotes values using rules that vary depending on Cookie version.static intCookieSerializerUtils. maybeQuote2(int version, Buffer buf, java.lang.String value, boolean allowVersionSwitch, boolean versionOneStrictCompliance)static intCookieSerializerUtils. maybeQuote2(int version, Buffer buf, java.lang.String value, java.lang.String literals, boolean allowVersionSwitch, boolean versionOneStrictCompliance)static voidCookieParserUtils. parseClientCookies(Cookies cookies, Buffer buffer, int off, int len)Parses a cookie header after the initial "Cookie:" [WS][$]token[WS]=[WS](token|QV)[;|,] RFC 2965 JVKstatic voidCookieParserUtils. parseClientCookies(Cookies cookies, Buffer buffer, int off, int len, boolean versionOneStrictCompliance, boolean rfc6265Enabled)Parses a cookie header after the initial "Cookie:" [WS][$]token[WS]=[WS](token|QV)[;|,] RFC 2965 JVKstatic intAscii. parseInt(Buffer b, int off, int len)Parses an unsigned int from the specified sub-array of bytes.static longAscii. parseLong(Buffer b, int off, int len)Parses an unsigned long from the specified sub-array of bytes.static voidCookieParserUtils. parseServerCookies(Cookies cookies, Buffer buffer, int off, int len, boolean versionOneStrictCompliance, boolean rfc6265Enabled)voidParameters. processParameters(Buffer buffer, int start, int len)voidParameters. processParameters(Buffer buffer, int start, int len, java.nio.charset.Charset enc)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte value)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] array)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] array, int off, int len)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] tempBuffer, java.lang.String s)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, byte[] tempBuffer, DataChunk chunk)static BufferHttpCodecUtils. put(MemoryManager memoryManager, Buffer dstBuffer, Buffer buffer)static BufferHttpCodecUtils. resizeBuffer(MemoryManager memoryManager, Buffer buffer, int grow)static voidCookieSerializerUtils. serializeClientCookies(Buffer buf, boolean versionOneStrictCompliance, Cookie... cookies)static voidCookieSerializerUtils. serializeClientCookies(Buffer buf, Cookie... cookies)static voidCookieSerializerUtils. serializeServerCookie(Buffer buf, boolean versionOneStrictCompliance, boolean alwaysAddExpires, java.lang.String name, java.lang.String value, int version, java.lang.String path, java.lang.String domain, java.lang.String comment, int maxAge, boolean isSecure, boolean isHttpOnly)static voidCookieSerializerUtils. serializeServerCookie(Buffer buf, boolean versionOneStrictCompliance, boolean alwaysAddExpires, Cookie cookie)static voidCookieSerializerUtils. serializeServerCookie(Buffer buf, Cookie cookie)voidBufferChunk. setBuffer(Buffer buffer)voidDataChunk. setBuffer(Buffer buffer)voidDataChunk. setBuffer(Buffer buffer, int position, int limit)voidBufferChunk. setBufferChunk(Buffer buffer, int start, int end)voidBufferChunk. setBufferChunk(Buffer buffer, int start, int end, int limit)static intHttpCodecUtils. skipSpaces(Buffer input, int offset, int packetLimit)static booleanBufferChunk. startsWith(Buffer buffer, int start, int end, byte[] cmpTo)static intCookieParserUtils. unescapeDoubleQuotes(Buffer buffer, int start, int length)Un-escapes any double quotes in the given cookie value. -
Uses of Buffer in org.glassfish.grizzly.memory
Classes in org.glassfish.grizzly.memory with type parameters of type Buffer Modifier and Type Class Description classAbstractMemoryManager<E extends Buffer>AMemoryManagerabstraction to provide utilities that may be useful across differentMemoryManagerimplementations.interfaceMemoryManager<E extends Buffer>MemoryManager, responsible for allocating and releasing memory, required during application runtime.Classes in org.glassfish.grizzly.memory that implement Buffer Modifier and Type Class Description classBuffersBufferprotected classByteBufferManager.SmallByteBufferWrapperByteBufferWrapperimplementation, which supports trimming.classByteBufferWrapperBufferimplementation, which uses theByteBufferunderneath.classCompositeBufferclassHeapBufferBufferimplementation, which uses theByteBufferunderneath.Fields in org.glassfish.grizzly.memory declared as Buffer Modifier and Type Field Description static BufferBuffers. EMPTY_BUFFERMethods in org.glassfish.grizzly.memory that return Buffer Modifier and Type Method Description BufferPooledMemoryManager. allocate(int size)For this implementation, this method simply calls through toPooledMemoryManager.allocateAtLeast(int);BufferPooledMemoryManager. allocateAtLeast(int size)Allocates a buffer of at least the size requested.static BufferBuffers. appendBuffers(MemoryManager memoryManager, Buffer buffer1, Buffer buffer2)Append twoBuffers.static BufferBuffers. appendBuffers(MemoryManager memoryManager, Buffer buffer1, Buffer buffer2, boolean isCompositeBufferDisposable)Append twoBuffers.static BufferBuffers. cloneBuffer(Buffer srcBuffer)Clones the sourceBuffer.static BufferBuffers. cloneBuffer(Buffer srcBuffer, int position, int limit)Clones the sourceBuffer.BufferByteBufferWrapper. get(java.nio.ByteBuffer dst)BufferByteBufferWrapper. get(java.nio.ByteBuffer dst, int position, int length)BufferHeapBuffer. get(java.nio.ByteBuffer dst)BufferHeapBuffer. get(java.nio.ByteBuffer dst, int position, int length)BufferBuffersBuffer. put(Buffer src, int position, int length)BufferByteBufferWrapper. put(java.nio.ByteBuffer src)BufferByteBufferWrapper. put(java.nio.ByteBuffer src, int position, int length)BufferHeapBuffer. put(java.nio.ByteBuffer src)BufferHeapBuffer. put(java.nio.ByteBuffer src, int position, int length)BufferByteBufferWrapper. put8BitString(java.lang.String s)BufferPooledMemoryManager. reallocate(Buffer oldBuffer, int newSize)Reallocates an existing buffer to at least the specified size.BufferBuffersBuffer. slice()BufferBuffersBuffer. slice(int position, int limit)BufferBuffersBuffer. split(int splitPosition)BufferByteBufferWrapper. split(int splitPosition)BufferHeapBuffer. split(int splitPosition)Split up the buffer into two parts: [0..splitPosition) and [splitPosition, capacity).Buffer[]BuffersBuffer. underlying()static BufferBuffers. wrap(MemoryManager memoryManager, byte[] array)ReturnsBuffer, which wraps the byte array.static BufferBuffers. wrap(MemoryManager memoryManager, byte[] array, int offset, int length)ReturnsBuffer, which wraps the part of byte array with specific offset and length.static BufferBuffers. wrap(MemoryManager memoryManager, java.lang.String s)ReturnsBuffer, which wraps theString.static BufferBuffers. wrap(MemoryManager memoryManager, java.lang.String s, java.nio.charset.Charset charset)static BufferBuffers. wrap(MemoryManager memoryManager, java.nio.ByteBuffer byteBuffer)ReturnsBuffer, which wraps theByteBuffer.BufferHeapMemoryManager. wrap(java.nio.ByteBuffer byteBuffer)ReturnsBuffer, which wraps theByteBuffer.BufferPooledMemoryManager. wrap(byte[] data)BufferPooledMemoryManager. wrap(byte[] data, int offset, int length)BufferPooledMemoryManager. wrap(java.lang.String s)BufferPooledMemoryManager. wrap(java.lang.String s, java.nio.charset.Charset charset)BufferPooledMemoryManager. wrap(java.nio.ByteBuffer byteBuffer)BufferWrapperAware. wrap(byte[] data)ReturnsBuffer, which wraps the byte array.BufferWrapperAware. wrap(byte[] data, int offset, int length)ReturnsBuffer, which wraps the part of byte array with specific offset and length.BufferWrapperAware. wrap(java.lang.String s)ReturnsBuffer, which wraps theString.BufferWrapperAware. wrap(java.lang.String s, java.nio.charset.Charset charset)BufferWrapperAware. wrap(java.nio.ByteBuffer byteBuffer)ReturnsBuffer, which wraps theByteBuffer.Methods in org.glassfish.grizzly.memory that return types with arguments of type Buffer Modifier and Type Method Description static Appender<Buffer>Buffers. getBufferAppender(boolean isCompositeBufferDisposable)Methods in org.glassfish.grizzly.memory with parameters of type Buffer Modifier and Type Method Description BuffersBufferBuffersBuffer. append(Buffer buffer)abstract CompositeBufferCompositeBuffer. append(Buffer buffer)static BufferBuffers. appendBuffers(MemoryManager memoryManager, Buffer buffer1, Buffer buffer2)Append twoBuffers.static BufferBuffers. appendBuffers(MemoryManager memoryManager, Buffer buffer1, Buffer buffer2, boolean isCompositeBufferDisposable)Append twoBuffers.static BufferBuffers. cloneBuffer(Buffer srcBuffer)Clones the sourceBuffer.static BufferBuffers. cloneBuffer(Buffer srcBuffer, int position, int limit)Clones the sourceBuffer.intBuffersBuffer. compareTo(Buffer that)intByteBufferWrapper. compareTo(Buffer o)intHeapBuffer. compareTo(Buffer o)static BuffersBufferBuffersBuffer. create(MemoryManager memoryManager, Buffer... buffers)static BuffersBufferBuffersBuffer. create(MemoryManager memoryManager, Buffer[] buffers, boolean isReadOnly)static voidBuffers. dumpBuffer(java.lang.Appendable appendable, Buffer buffer)Generates a hex dump of the providedBuffer.static voidBuffers. fill(Buffer buffer, byte b)Fill theBufferwith the specific byte value.static voidBuffers. fill(Buffer buffer, int position, int limit, byte b)protected intBufferArray. getLimit(Buffer buffer)protected intBufferArray. getPosition(Buffer buffer)static CompositeBufferCompositeBuffer. newBuffer(MemoryManager memoryManager, Buffer... buffers)static CompositeBufferCompositeBuffer. newBuffer(MemoryManager memoryManager, Buffer[] buffers, boolean isReadOnly)BuffersBufferBuffersBuffer. prepend(Buffer buffer)ByteBufferWrapperByteBufferWrapper. prepend(Buffer header)abstract CompositeBufferCompositeBuffer. prepend(Buffer buffer)HeapBufferHeapBuffer. prepend(Buffer header)static voidBuffers. put(Buffer src, int position, int length, Buffer dstBuffer)BuffersBufferBuffersBuffer. put(Buffer src)BufferBuffersBuffer. put(Buffer src, int position, int length)ByteBufferWrapperByteBufferWrapper. put(Buffer src)ByteBufferWrapperByteBufferWrapper. put(Buffer src, int position, int length)HeapBufferHeapBuffer. put(Buffer src)HeapBufferHeapBuffer. put(Buffer src, int position, int length)static longBuffers. readFromFileChannel(java.nio.channels.FileChannel fileChannel, Buffer buffer)Reads data from theFileChannelinto theBuffer.BufferPooledMemoryManager. reallocate(Buffer oldBuffer, int newSize)Reallocates an existing buffer to at least the specified size.voidPooledMemoryManager. release(Buffer buffer)ReleaseBuffer.booleanBuffersBuffer. replace(Buffer oldBuffer, Buffer newBuffer)abstract booleanCompositeBuffer. replace(Buffer oldBuffer, Buffer newBuffer)Replace one internalBufferwith another one.protected voidBufferArray. setPositionLimit(Buffer buffer, int position, int limit)static voidBuffers. setPositionLimit(Buffer buffer, int position, int limit)java.lang.StringBuffers. toStringContent(Buffer buffer, int headBytesCount, int tailBytesCount)Returns theBuffer'sStringrepresentation in a form:Buffer#toString()+ "[" ++ "..." + + "]" For example: java.lang.StringBuffers. toStringContent(Buffer buffer, int headBytesCount, int tailBytesCount, java.nio.charset.Charset charset)Returns theBuffer'sStringrepresentation in a form:Buffer#toString()+ "[" ++ "..." + + "]" For example: static longBuffers. writeToFileChannel(java.nio.channels.FileChannel fileChannel, Buffer buffer)Writes data from theBufferinto theFileChannel.Constructors in org.glassfish.grizzly.memory with parameters of type Buffer Constructor Description BuffersBuffer(MemoryManager memoryManager, Buffer[] buffers, int buffersSize, boolean isReadOnly) -
Uses of Buffer in org.glassfish.grizzly.nio
Methods in org.glassfish.grizzly.nio with parameters of type Buffer Modifier and Type Method Description protected static voidNIOConnection. notifyProbesRead(NIOConnection connection, Buffer data, int size)Notify registeredConnectionProbes about the read event.protected static voidNIOConnection. notifyProbesWrite(NIOConnection connection, Buffer data, long size)Notify registeredConnectionProbes about the write event.voidAbstractNIOAsyncQueueReader. read(Connection<java.net.SocketAddress> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)Method reads data to the buffer.protected abstract intAbstractNIOAsyncQueueReader. read0(Connection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)Method parameters in org.glassfish.grizzly.nio with type arguments of type Buffer Modifier and Type Method Description voidAbstractNIOAsyncQueueReader. read(Connection<java.net.SocketAddress> connection, Buffer buffer, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)Method reads data to the buffer.protected abstract intAbstractNIOAsyncQueueReader. read0(Connection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult) -
Uses of Buffer in org.glassfish.grizzly.nio.tmpselectors
Methods in org.glassfish.grizzly.nio.tmpselectors that return Buffer Modifier and Type Method Description protected BufferTemporarySelectorReader. acquireBuffer(Connection connection)Methods in org.glassfish.grizzly.nio.tmpselectors with parameters of type Buffer Modifier and Type Method Description voidTemporarySelectorReader. read(Connection<java.net.SocketAddress> connection, Buffer message, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)voidTemporarySelectorReader. read(Connection<java.net.SocketAddress> connection, Buffer message, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor, long timeout, java.util.concurrent.TimeUnit timeunit)Method reads data to the message.protected intTemporarySelectorReader. read0(NIOConnection connection, ReadResult<Buffer,java.net.SocketAddress> currentResult, Buffer buffer, long timeout, java.util.concurrent.TimeUnit timeunit)protected abstract intTemporarySelectorReader. readNow0(NIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)Method parameters in org.glassfish.grizzly.nio.tmpselectors with type arguments of type Buffer Modifier and Type Method Description voidTemporarySelectorReader. read(Connection<java.net.SocketAddress> connection, Buffer message, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor)voidTemporarySelectorReader. read(Connection<java.net.SocketAddress> connection, Buffer message, CompletionHandler<ReadResult<Buffer,java.net.SocketAddress>> completionHandler, Interceptor<ReadResult> interceptor, long timeout, java.util.concurrent.TimeUnit timeunit)Method reads data to the message.protected intTemporarySelectorReader. read0(NIOConnection connection, ReadResult<Buffer,java.net.SocketAddress> currentResult, Buffer buffer, long timeout, java.util.concurrent.TimeUnit timeunit)protected abstract intTemporarySelectorReader. readNow0(NIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult) -
Uses of Buffer in org.glassfish.grizzly.nio.transport
Methods in org.glassfish.grizzly.nio.transport that return Buffer Modifier and Type Method Description static BufferTCPNIOUtils. allocateAndReadBuffer(TCPNIOConnection connection)protected BufferDefaultStreamWriter.Output. newBuffer(int size)BufferTCPNIOTransport. read(Connection connection, Buffer buffer)protected BufferDefaultStreamWriter.Output. reallocateBuffer(Buffer oldBuffer, int size)Methods in org.glassfish.grizzly.nio.transport with parameters of type Buffer Modifier and Type Method Description protected voidTCPNIOAsyncQueueReader. addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)protected voidUDPNIOAsyncQueueReader. addRecord(Connection connection, Buffer buffer, CompletionHandler completionHandler, Interceptor<ReadResult> interceptor)protected GrizzlyFuture<java.lang.Integer>DefaultStreamWriter.Output. flush0(Buffer buffer, CompletionHandler<java.lang.Integer> completionHandler)protected voidTCPNIOConnection. onRead(Buffer data, int size)Method will be called, when some data was read on the connectionprotected voidUDPNIOConnection. onRead(Buffer data, int size)Method will be called, when some data was read on the connectionprotected voidTCPNIOConnection. onWrite(Buffer data, long size)Method will be called, when some data was written on the connectionprotected voidUDPNIOConnection. onWrite(Buffer data, int size)Method will be called, when some data was written on the connectionBufferTCPNIOTransport. read(Connection connection, Buffer buffer)intUDPNIOTransport. read(UDPNIOConnection connection, Buffer buffer)intUDPNIOTransport. read(UDPNIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)protected intTCPNIOAsyncQueueReader. read0(Connection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)protected intUDPNIOAsyncQueueReader. read0(Connection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)static intTCPNIOUtils. readBuffer(TCPNIOConnection connection, Buffer buffer)protected intTCPNIOTemporarySelectorReader. readNow0(NIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)protected intUDPNIOTemporarySelectorReader. readNow0(NIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)static intTCPNIOUtils. readSimpleBuffer(TCPNIOConnection connection, Buffer buffer)protected BufferDefaultStreamWriter.Output. reallocateBuffer(Buffer oldBuffer, int size)static intTCPNIOUtils. writeSimpleBuffer(TCPNIOConnection connection, Buffer buffer)Method parameters in org.glassfish.grizzly.nio.transport with type arguments of type Buffer Modifier and Type Method Description intUDPNIOTransport. read(UDPNIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)protected intTCPNIOAsyncQueueReader. read0(Connection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)protected intUDPNIOAsyncQueueReader. read0(Connection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)protected intTCPNIOTemporarySelectorReader. readNow0(NIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult)protected intUDPNIOTemporarySelectorReader. readNow0(NIOConnection connection, Buffer buffer, ReadResult<Buffer,java.net.SocketAddress> currentResult) -
Uses of Buffer in org.glassfish.grizzly.ssl
Fields in org.glassfish.grizzly.ssl with type parameters of type Buffer Modifier and Type Field Description protected static MessageCloner<Buffer>SSLBaseFilter. COPY_CLONERMethods in org.glassfish.grizzly.ssl that return Buffer Modifier and Type Method Description static BufferSSLUtils. allocateInputBuffer(SSLConnectionContext sslCtx)static BufferSSLUtils. allowDispose(Buffer buffer)protected BufferSSLBaseFilter. doHandshakeStep(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer)protected BufferSSLBaseFilter. doHandshakeStep(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer, Buffer tmpAppBuffer0)protected BufferSSLFilter. doHandshakeStep(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer, Buffer tmpAppBuffer0)protected BufferSSLBaseFilter. doHandshakeSync(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer, long timeoutMillis)static BufferSSLUtils. handshakeWrap(Connection connection, SSLConnectionContext sslCtx, Buffer netBuffer)protected BufferSSLBaseFilter. wrapAll(FilterChainContext ctx, SSLConnectionContext sslCtx)Methods in org.glassfish.grizzly.ssl that return types with arguments of type Buffer Modifier and Type Method Description Transformer<Buffer,Buffer>SSLCodec. getDecoder()Transformer<Buffer,Buffer>SSLCodec. getDecoder()Transformer<Buffer,Buffer>SSLCodec. getEncoder()Transformer<Buffer,Buffer>SSLCodec. getEncoder()protected TransformationResult<Buffer,Buffer>SSLDecoderTransformer. transformImpl(AttributeStorage state, Buffer originalMessage)protected TransformationResult<Buffer,Buffer>SSLDecoderTransformer. transformImpl(AttributeStorage state, Buffer originalMessage)protected TransformationResult<Buffer,Buffer>SSLEncoderTransformer. transformImpl(AttributeStorage state, Buffer originalMessage)protected TransformationResult<Buffer,Buffer>SSLEncoderTransformer. transformImpl(AttributeStorage state, Buffer originalMessage)Methods in org.glassfish.grizzly.ssl with parameters of type Buffer Modifier and Type Method Description static BufferSSLUtils. allowDispose(Buffer buffer)protected BufferSSLBaseFilter. doHandshakeStep(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer)protected BufferSSLBaseFilter. doHandshakeStep(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer, Buffer tmpAppBuffer0)protected BufferSSLFilter. doHandshakeStep(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer, Buffer tmpAppBuffer0)protected BufferSSLBaseFilter. doHandshakeSync(SSLConnectionContext sslCtx, FilterChainContext ctx, Buffer inputBuffer, long timeoutMillis)static intSSLUtils. getSSLPacketSize(Buffer buf)static javax.net.ssl.SSLEngineResultSSLUtils. handshakeUnwrap(int length, SSLConnectionContext sslCtx, Buffer inputBuffer, Buffer tmpOutputBuffer)static BufferSSLUtils. handshakeWrap(Connection connection, SSLConnectionContext sslCtx, Buffer netBuffer)booleanSSLDecoderTransformer. hasInputRemaining(AttributeStorage storage, Buffer input)booleanSSLEncoderTransformer. hasInputRemaining(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>SSLDecoderTransformer. transformImpl(AttributeStorage state, Buffer originalMessage)protected TransformationResult<Buffer,Buffer>SSLEncoderTransformer. transformImpl(AttributeStorage state, Buffer originalMessage) -
Uses of Buffer in org.glassfish.grizzly.streams
Fields in org.glassfish.grizzly.streams with type parameters of type Buffer Modifier and Type Field Description protected Transformer<Buffer,Buffer>TransformerInput. transformerprotected Transformer<Buffer,Buffer>TransformerInput. transformerprotected Transformer<Buffer,Buffer>TransformerOutput. transformerprotected Transformer<Buffer,Buffer>TransformerOutput. transformerMethods in org.glassfish.grizzly.streams that return Buffer Modifier and Type Method Description BufferBufferedInput. getBuffer()BufferBufferedOutput. getBuffer()BufferInput. getBuffer()Return the Input'sBuffer.BufferOutput. getBuffer()Return the Input'sBuffer.BufferStreamInput. getBuffer()BufferStreamOutput. getBuffer()BufferAbstractStreamReader. getBufferWindow()BufferStreamReader. getBufferWindow()protected abstract BufferBufferedOutput. newBuffer(int size)protected BufferTransformerOutput. newBuffer(int size)protected abstract BufferBufferedOutput. reallocateBuffer(Buffer oldBuffer, int size)protected BufferTransformerOutput. reallocateBuffer(Buffer oldBuffer, int size)BufferBufferedInput. takeBuffer()BufferInput. takeBuffer()Takes the Input'sBuffer.BufferStreamInput. takeBuffer()BufferAbstractStreamReader. takeBufferWindow()BufferStreamReader. takeBufferWindow()Methods in org.glassfish.grizzly.streams with parameters of type Buffer Modifier and Type Method Description booleanBufferedInput. append(Buffer buffer)protected abstract GrizzlyFuture<java.lang.Integer>BufferedOutput. flush0(Buffer buffer, CompletionHandler<java.lang.Integer> completionHandler)protected GrizzlyFuture<java.lang.Integer>TransformerOutput. flush0(Buffer buffer, CompletionHandler<java.lang.Integer> completionHandler)booleanBufferedInput. prepend(Buffer buffer)voidAbstractStreamReader. readBytes(Buffer buffer)Fill the buffer with data from the stream (that is, copy data from the stream to fill buffer from position to limit).voidStreamReader. readBytes(Buffer buffer)Fill the buffer with data from the stream (that is, copy data from the stream to fill buffer from position to limit).protected abstract BufferBufferedOutput. reallocateBuffer(Buffer oldBuffer, int size)protected BufferTransformerOutput. reallocateBuffer(Buffer oldBuffer, int size)voidBufferedOutput. write(Buffer bufferToWrite)voidOutput. write(Buffer buffer)voidStreamOutput. write(Buffer buffer)voidAbstractStreamWriter. writeBuffer(Buffer b)Write theBufferto the StreamWriter.voidStreamWriter. writeBuffer(Buffer buffer)Write theBufferto the StreamWriter.Method parameters in org.glassfish.grizzly.streams with type arguments of type Buffer Modifier and Type Method Description <E> GrizzlyFuture<Stream>AbstractStreamWriter. encode(Transformer<E,Buffer> encoder, E object)<E> GrizzlyFuture<Stream>AbstractStreamWriter. encode(Transformer<E,Buffer> encoder, E object, CompletionHandler<Stream> completionHandler)<E> GrizzlyFuture<Stream>StreamWriter. encode(Transformer<E,Buffer> encoder, E object)<E> GrizzlyFuture<Stream>StreamWriter. encode(Transformer<E,Buffer> encoder, E object, CompletionHandler<Stream> completionHandler)Constructors in org.glassfish.grizzly.streams with parameters of type Buffer Constructor Description DisposeBufferCompletionHandler(Buffer buffer) -
Uses of Buffer in org.glassfish.grizzly.utils
Methods in org.glassfish.grizzly.utils that return Buffer Modifier and Type Method Description protected BufferBufferOutputStream. allocateNewBuffer(MemoryManager memoryManager, int size)BufferBufferOutputStream. getBuffer()Get the resultBuffer(not flipped).Methods in org.glassfish.grizzly.utils that return types with arguments of type Buffer Modifier and Type Method Description protected TransformationResult<Buffer,java.lang.String>StringDecoder. parseWithLengthPrefix(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,java.lang.String>StringDecoder. parseWithTerminatingSeq(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>ChunkingFilter.ChunkingTransformer. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,Buffer>ChunkingFilter.ChunkingTransformer. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,java.lang.String>StringDecoder. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<java.lang.String,Buffer>StringEncoder. transformImpl(AttributeStorage storage, java.lang.String input)Methods in org.glassfish.grizzly.utils with parameters of type Buffer Modifier and Type Method Description booleanChunkingFilter.ChunkingTransformer. hasInputRemaining(AttributeStorage storage, Buffer input)booleanStringDecoder. hasInputRemaining(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,java.lang.String>StringDecoder. parseWithLengthPrefix(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,java.lang.String>StringDecoder. parseWithTerminatingSeq(AttributeStorage storage, Buffer input)voidBufferOutputStream. setInitialOutputBuffer(Buffer initialBuffer)protected TransformationResult<Buffer,Buffer>ChunkingFilter.ChunkingTransformer. transformImpl(AttributeStorage storage, Buffer input)protected TransformationResult<Buffer,java.lang.String>StringDecoder. transformImpl(AttributeStorage storage, Buffer input)Constructors in org.glassfish.grizzly.utils with parameters of type Buffer Constructor Description BufferInputStream(Buffer buffer)Create theInputStreamover GrizzlyBuffer.BufferInputStream(Buffer buffer, int position, int limit)Create theInputStreamover GrizzlyBuffer.BufferOutputStream(MemoryManager mm, Buffer buffer)Creates the BufferOutputStream using passedBufferas initial.BufferOutputStream(MemoryManager mm, Buffer buffer, boolean reallocate)Creates the BufferOutputStream using passedBufferas initial.
-