Class HttpRequestEncoder
- java.lang.Object
-
- org.glassfish.jersey.jdk.connector.internal.HttpRequestEncoder
-
class HttpRequestEncoder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringENCODINGprivate static java.lang.StringHTTP_VERSIONprivate static byte[]LAST_CHUNKprivate static java.lang.StringLINE_SEPARATORprivate static byte[]LINE_SEPARATOR_BYTES
-
Constructor Summary
Constructors Constructor Description HttpRequestEncoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidappendFirstLine(java.lang.StringBuilder request, HttpRequest httpRequest)private static voidappendHeader(java.lang.StringBuilder request, java.lang.String key, java.lang.String value)private static voidappendUpgradeHeaders(java.lang.StringBuilder request, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)(package private) static java.nio.ByteBufferencodeChunk(java.nio.ByteBuffer data)(package private) static java.nio.ByteBufferencodeHeader(HttpRequest httpRequest)private static byte[]getChunkHeaderBytes(int dataLength)(package private) static intgetChunkSize(int dataLength)
-
-
-
Field Detail
-
ENCODING
private static final java.lang.String ENCODING
- See Also:
- Constant Field Values
-
LINE_SEPARATOR
private static final java.lang.String LINE_SEPARATOR
- See Also:
- Constant Field Values
-
LINE_SEPARATOR_BYTES
private static final byte[] LINE_SEPARATOR_BYTES
-
LAST_CHUNK
private static final byte[] LAST_CHUNK
-
HTTP_VERSION
private static final java.lang.String HTTP_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
appendUpgradeHeaders
private static void appendUpgradeHeaders(java.lang.StringBuilder request, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
appendHeader
private static void appendHeader(java.lang.StringBuilder request, java.lang.String key, java.lang.String value)
-
appendFirstLine
private static void appendFirstLine(java.lang.StringBuilder request, HttpRequest httpRequest)
-
encodeHeader
static java.nio.ByteBuffer encodeHeader(HttpRequest httpRequest)
-
encodeChunk
static java.nio.ByteBuffer encodeChunk(java.nio.ByteBuffer data)
-
getChunkHeaderBytes
private static byte[] getChunkHeaderBytes(int dataLength)
-
getChunkSize
static int getChunkSize(int dataLength)
-
-