Package org.eclipse.jetty.http
Class PreEncodedHttpField
java.lang.Object
org.eclipse.jetty.http.HttpField
org.eclipse.jetty.http.PreEncodedHttpField
Pre encoded HttpField.
An HttpField that will be cached and used many times can be created as
a PreEncodedHttpField
, which will use the HttpFieldPreEncoder
instances discovered by the ServiceLoader
to pre-encode the header
for each version of HTTP in use. This will save garbage
and CPU each time the field is encoded into a response.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.http.HttpField
HttpField.IntValueHttpField, HttpField.LongValueHttpField
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HttpFieldPreEncoder[]
private final byte[][]
private static final Logger
-
Constructor Summary
ConstructorsConstructorDescriptionPreEncodedHttpField
(String name, String value) PreEncodedHttpField
(HttpHeader header, String value) PreEncodedHttpField
(HttpHeader header, String name, String value) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
index
(HttpVersion version) void
putTo
(ByteBuffer bufferInFillMode, HttpVersion version) Methods inherited from class org.eclipse.jetty.http.HttpField
contains, equals, getHeader, getIntValue, getLongValue, getLowerCaseName, getName, getValue, getValues, hashCode, is, isSameName, toString
-
Field Details
-
LOG
-
__encoders
-
_encodedField
private final byte[][] _encodedField
-
-
Constructor Details
-
PreEncodedHttpField
-
PreEncodedHttpField
-
PreEncodedHttpField
-
-
Method Details
-
index
-
putTo
-