Top Description Fields Constructors Methods
org.glassfish.grizzly.http2

pack-priv Class EncoderUtils

extends EncoderDecoderUtilsBase
Class Inheritance
Static Imports
org.glassfish.grizzly.http.util.DataChunk.Type.Buffer, .DataChunk.Type.Bytes

HTTP Packet -> HTTP/2 frames encoder utils.
Author
Grizzly team

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
Inherited from org.glassfish.grizzly.http2.EncoderDecoderUtilsBase:
AUTHORITY_HEADERMETHOD_HEADERPATH_HEADERSCHEMA_HEADERSTATUS_HEADER

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Buffer
encodeInterimResponseHeaders(final Http2Session http2Session, final HttpResponsePacket response, final Map<String, String> capture)

Encodes an informational (1xx) interim response, such as 103 Early Hints, using the response's interim status.

pack-priv static Buffer
encodeRequestHeaders(final Http2Session http2Session, final HttpRequestPacket request, final Map<String, String> capture)

pack-priv static Buffer
encodeResponseHeaders(final Http2Session http2Session, final HttpResponsePacket response, final Map<String, String> capture)

private static Buffer
encodeResponseHeaders(final Http2Session http2Session, final HttpResponsePacket response, final int statusCode, final boolean markSerialized, final Map<String, String> capture)

pack-priv static Buffer
encodeTrailerHeaders(final Http2Session http2Session, final MimeHeaders trailers, final Map<String, String> capture)

private static void
encodeUserHeaders(final MimeHeaders headers, final HeadersEncoder encoder, final boolean markSerialized, final Map<String, String> capture)

private static String
private static byte[]
private static int
valueToByteArray(final DataChunk value, final byte[] dstArray, int arrayOffs)

private static byte[]

Field Detail

HTTPback to summary
private static final String HTTP
HTTPSback to summary
private static final String HTTPS

Constructor Detail

EncoderUtilsback to summary
pack-priv EncoderUtils()

Method Detail

encodeInterimResponseHeadersback to summary
pack-priv static Buffer encodeInterimResponseHeaders(final Http2Session http2Session, final HttpResponsePacket response, final Map<String, String> capture) throws IOException

Encodes an informational (1xx) interim response, such as 103 Early Hints, using the response's interim status. The headers are not marked as serialized, so they are emitted again with the final response.

encodeRequestHeadersback to summary
pack-priv static Buffer encodeRequestHeaders(final Http2Session http2Session, final HttpRequestPacket request, final Map<String, String> capture) throws IOException
Annotations
@SuppressWarnings:unchecked
encodeResponseHeadersback to summary
pack-priv static Buffer encodeResponseHeaders(final Http2Session http2Session, final HttpResponsePacket response, final Map<String, String> capture) throws IOException
encodeResponseHeadersback to summary
private static Buffer encodeResponseHeaders(final Http2Session http2Session, final HttpResponsePacket response, final int statusCode, final boolean markSerialized, final Map<String, String> capture) throws IOException
Annotations
@SuppressWarnings:unchecked
encodeTrailerHeadersback to summary
pack-priv static Buffer encodeTrailerHeaders(final Http2Session http2Session, final MimeHeaders trailers, final Map<String, String> capture)
encodeUserHeadersback to summary
private static void encodeUserHeaders(final MimeHeaders headers, final HeadersEncoder encoder, final boolean markSerialized, final Map<String, String> capture) throws IOException
Annotations
@SuppressWarnings:unchecked
nameToLowerCaseback to summary
private static String nameToLowerCase(final DataChunk name)
nameToLowerCaseByteArrayback to summary
private static byte[] nameToLowerCaseByteArray(final DataChunk name)
Annotations
@SuppressWarnings:unused
valueToByteArrayback to summary
private static int valueToByteArray(final DataChunk value, final byte[] dstArray, int arrayOffs)
Annotations
@SuppressWarnings:unused
valueToByteArrayback to summary
private static byte[] valueToByteArray(final DataChunk value)
Annotations
@SuppressWarnings:unused