Uses of Class
org.glassfish.grizzly.http.HttpHeader
Packages that use HttpHeader
-
Uses of HttpHeader in org.glassfish.grizzly.http
Subclasses of HttpHeader in org.glassfish.grizzly.httpModifier and TypeClassDescriptionclassTheHttpHeaderobject, which represents HTTP request message.classTheHttpHeaderobject, which represents HTTP response message.Fields in org.glassfish.grizzly.http declared as HttpHeaderModifier and TypeFieldDescriptionprotected HttpHeaderHttpContent.Builder.httpHeaderprotected HttpHeaderHttpContent.httpHeaderMethods in org.glassfish.grizzly.http that return HttpHeaderModifier and TypeMethodDescriptionHttpHeader.Builder.build()protected abstract HttpHeaderHttpHeader.Builder.create()protected HttpHeaderHttpRequestPacket.Builder.create()protected HttpHeaderHttpResponsePacket.Builder.create()final HttpHeaderHttpContent.getHttpHeader()Get the HTTP message header, associated with this content.HttpHeader.getHttpHeader()Returns this HttpHeader object.abstract HttpHeaderHttpPacket.getHttpHeader()Get the HTTP message header, associated with this HTTP packet.HttpEvents.ChangePacketInProgressEvent.getPacket()Methods in org.glassfish.grizzly.http with parameters of type HttpHeaderModifier and TypeMethodDescriptionbooleanEncodingFilter.applyDecoding(HttpHeader httpPacket) booleanEncodingFilter.applyEncoding(HttpHeader httpPacket) static HttpBrokenContent.BuilderHttpBrokenContent.builder(HttpHeader httpHeader) ReturnsHttpTrailerbuilder.static HttpContent.BuilderHttpContent.builder(HttpHeader httpHeader) ReturnsHttpContentbuilder.static HttpTrailer.BuilderHttpTrailer.builder(HttpHeader httpHeader) ReturnsHttpTrailerbuilder.static HttpBrokenContentHttpBrokenContent.create(HttpHeader httpHeader) static HttpContentHttpContent.create(HttpHeader httpHeader) static HttpContentHttpContent.create(HttpHeader httpHeader, boolean isLast) static HttpContentHttpContent.create(HttpHeader httpHeader, boolean isLast, org.glassfish.grizzly.Buffer content) static HttpTrailerHttpTrailer.create(HttpHeader httpHeader) HttpEvents.createChangePacketInProgressEvent(HttpHeader packet) HttpEvents.createIncomingUpgradeEvent(HttpHeader httpHeader) HttpEvents.createOutgoingUpgradeEvent(HttpHeader httpHeader) protected final org.glassfish.grizzly.BufferHttpCodecFilter.encodeHttpPacket(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpHeader, HttpContent httpContent, boolean isContentAlreadyEncoded) protected static org.glassfish.grizzly.BufferHttpCodecFilter.encodeKnownHeaders(org.glassfish.grizzly.memory.MemoryManager memoryManager, org.glassfish.grizzly.Buffer buffer, HttpHeader httpHeader) final org.glassfish.grizzly.filterchain.NextActionHttpCodecFilter.handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpHeader) The method is called by the specific HttpCodecFilter implementation, once we have received aBuffer, which has to be transformed into HTTP packet part.final THttpContent.Builder.httpHeader(HttpHeader httpHeader) Set theHttpHeaderassociated with this content.voidHttpProbe.Adapter.onContentEncodingParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, ContentEncoding contentEncoding) Method will be called, whenContentEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidHttpProbe.onContentEncodingParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.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(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) This method will be called after theContentEncodinghas been applied.voidHttpProbe.onContentEncodingParseResultEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) This method will be called after theContentEncodinghas been applied.voidHttpProbe.Adapter.onContentEncodingSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, ContentEncoding contentEncoding) /** Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe.onContentEncodingSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.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(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe.onContentEncodingSerializeResultEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe.Adapter.onHeaderParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, int size) Method will be called, when HTTP message header gets parsed (either request or response).voidHttpProbe.onHeaderParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, int size) Method will be called, when HTTP message header gets parsed (either request or response).voidHttpProbe.Adapter.onHeaderSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer) Method will be called, when HTTP message header gets serialized (either request or response).voidHttpProbe.onHeaderSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer) Method will be called, when HTTP message header gets serialized (either request or response).protected voidHttpClientFilter.onHttpContentError(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx, Throwable t) protected abstract voidHttpCodecFilter.onHttpContentError(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx, Throwable t) Callback which is invoked when parsing an HTTP message payload fails.protected voidHttpServerFilter.onHttpContentError(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx, Throwable t) protected voidHttpClientFilter.onHttpHeaderError(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx, Throwable t) protected abstract voidHttpCodecFilter.onHttpHeaderError(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx, Throwable t) Callback which is invoked when parsing an HTTP message header fails.protected voidHttpServerFilter.onHttpHeaderError(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx, Throwable t) protected booleanHttpClientFilter.onHttpHeaderParsed(HttpHeader httpHeader, org.glassfish.grizzly.Buffer buffer, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected abstract booleanHttpCodecFilter.onHttpHeaderParsed(HttpHeader httpHeader, org.glassfish.grizzly.Buffer buffer, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Callback invoked when the HTTP message header parsing is complete.protected booleanHttpServerFilter.onHttpHeaderParsed(HttpHeader httpHeader, org.glassfish.grizzly.Buffer buffer, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected voidHttpClientFilter.onHttpHeadersEncoded(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected abstract voidHttpCodecFilter.onHttpHeadersEncoded(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Invoked when HTTP headers have been encoded in preparation to being transmitted to the user-agent.protected voidHttpServerFilter.onHttpHeadersEncoded(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected voidHttpClientFilter.onHttpHeadersParsed(HttpHeader httpHeader, MimeHeaders headers, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected abstract voidHttpCodecFilter.onHttpHeadersParsed(HttpHeader httpHeader, MimeHeaders headers, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Invoked when HTTP headers portion comes forHttpHeadermessage.protected voidHttpServerFilter.onHttpHeadersParsed(HttpHeader httpHeader, MimeHeaders headers, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected booleanHttpClientFilter.onHttpPacketParsed(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected abstract booleanHttpCodecFilter.onHttpPacketParsed(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Callback method, called whenHttpPacketparsing has been completed.protected final booleanHttpServerFilter.onHttpPacketParsed(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected voidHttpCodecFilter.onIncomingUpgrade(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpHeader) The method is called, when a peer sends an upgrade HTTP packet (either request or response).protected voidHttpClientFilter.onInitialLineEncoded(HttpHeader header, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected abstract voidHttpCodecFilter.onInitialLineEncoded(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Invoked when the initial response line has been encoded in preparation to being transmitted to the user-agent.protected voidHttpServerFilter.onInitialLineEncoded(HttpHeader header, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected voidHttpClientFilter.onInitialLineParsed(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected abstract voidHttpCodecFilter.onInitialLineParsed(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Invoked when either the request line or status line has been parsed.protected voidHttpServerFilter.onInitialLineParsed(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) protected voidHttpCodecFilter.onOutgoingUpgrade(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpHeader) voidHttpProbe.Adapter.onTransferEncodingParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidHttpProbe.onTransferEncodingParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.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(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidHttpProbe.onTransferEncodingSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.protected booleanHttpCodecFilter.parseHeaderFromBuffer(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, org.glassfish.grizzly.Buffer input) protected booleanHttpCodecFilter.parseHeaderFromBytes(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, byte[] input, int end) protected booleanHttpCodecFilter.parseHeaderName(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, byte[] input, int end) protected booleanHttpCodecFilter.parseHeaderName(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, org.glassfish.grizzly.Buffer input) protected booleanHttpCodecFilter.parseHeadersFromBuffer(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, org.glassfish.grizzly.Buffer input) protected booleanHttpCodecFilter.parseHeadersFromBytes(HttpHeader httpHeader, MimeHeaders mimeHeaders, HttpCodecFilter.HeaderParsingState parsingState, byte[] input, int end) protected static intHttpCodecFilter.parseHeaderValue(HttpHeader httpHeader, HttpCodecFilter.HeaderParsingState parsingState, byte[] input, int end) protected static intHttpCodecFilter.parseHeaderValue(HttpHeader httpHeader, HttpCodecFilter.HeaderParsingState parsingState, org.glassfish.grizzly.Buffer input) ChunkedTransferEncoding.parsePacket(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpPacket, org.glassfish.grizzly.Buffer buffer) Parse HTTP packet payload, represented byBufferusing specific transfer encoding.FixedLengthTransferEncoding.parsePacket(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpPacket, org.glassfish.grizzly.Buffer input) Parse HTTP packet payload, represented byBufferusing specific transfer encoding.TransferEncoding.parsePacket(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpPacket, org.glassfish.grizzly.Buffer buffer) Parse HTTP packet payload, represented byBufferusing specific transfer encoding.voidChunkedTransferEncoding.prepareSerialize(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpHeader, HttpContent content) This method will be called byHttpCodecFilterto let TransferEncoding prepare itself for the content serialization.voidFixedLengthTransferEncoding.prepareSerialize(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpHeader, HttpContent httpContent) voidTransferEncoding.prepareSerialize(org.glassfish.grizzly.filterchain.FilterChainContext ctx, HttpHeader httpHeader, HttpContent content) This method will be called byHttpCodecFilterto let TransferEncoding prepare itself for the content serialization.booleanChunkedTransferEncoding.wantDecode(HttpHeader httpPacket) Return true if this encoding should be used to parse the content of the passedHttpHeader, or false otherwise.booleanContentEncoding.wantDecode(HttpHeader header) Method should implement the logic, which decides if HTTP packet with the specificHttpHeadershould be decoded using this ContentEncoding.booleanFixedLengthTransferEncoding.wantDecode(HttpHeader httpPacket) Return true if this encoding should be used to parse the content of the passedHttpHeader, or false otherwise.final booleanGZipContentEncoding.wantDecode(HttpHeader header) booleanLZMAContentEncoding.wantDecode(HttpHeader header) booleanTransferEncoding.wantDecode(HttpHeader httpPacket) Return true if this encoding should be used to parse the content of the passedHttpHeader, or false otherwise.booleanChunkedTransferEncoding.wantEncode(HttpHeader httpPacket) Return true if this encoding should be used to serialize the content of the passedHttpHeader, or false otherwise.booleanContentEncoding.wantEncode(HttpHeader header) Method should implement the logic, which decides if HTTP packet with the specificHttpHeadershould be encoded using this ContentEncoding.booleanFixedLengthTransferEncoding.wantEncode(HttpHeader httpPacket) Return true if this encoding should be used to serialize the content of the passedHttpHeader, or false otherwise.final booleanGZipContentEncoding.wantEncode(HttpHeader header) booleanLZMAContentEncoding.wantEncode(HttpHeader header) booleanTransferEncoding.wantEncode(HttpHeader httpPacket) Return true if this encoding should be used to serialize the content of the passedHttpHeader, or false otherwise.Constructors in org.glassfish.grizzly.http with parameters of type HttpHeaderModifierConstructorDescriptionprotectedHttpBrokenContent(HttpHeader httpHeader) protectedHttpContent(HttpHeader httpHeader) protectedHttpContent(HttpHeader httpHeader, boolean isLast, org.glassfish.grizzly.Buffer content) protectedHttpTrailer(HttpHeader httpHeader) -
Uses of HttpHeader in org.glassfish.grizzly.http.io
Methods in org.glassfish.grizzly.http.io with parameters of type HttpHeaderModifier and TypeMethodDescriptionvoidInputBuffer.initialize(HttpHeader httpHeader, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Per-request initialization required for the InputBuffer to function properly.voidOutputBuffer.initialize(HttpHeader outputHeader, boolean sendfileEnabled, org.glassfish.grizzly.filterchain.FilterChainContext ctx)