Package org.eclipse.jetty.http
Class Http1FieldPreEncoder
- java.lang.Object
-
- org.eclipse.jetty.http.Http1FieldPreEncoder
-
- All Implemented Interfaces:
HttpFieldPreEncoder
public class Http1FieldPreEncoder extends java.lang.Object implements HttpFieldPreEncoder
-
-
Constructor Summary
Constructors Constructor Description Http1FieldPreEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncodedField(HttpHeader header, java.lang.String headerString, java.lang.String value)
HttpVersion
getHttpVersion()
The major version this encoder is for.
-
-
-
Method Detail
-
getHttpVersion
public HttpVersion getHttpVersion()
Description copied from interface:HttpFieldPreEncoder
The major version this encoder is for. Both HTTP/1.0 and HTTP/1.1 use the same field encoding, so theHttpVersion.HTTP_1_0
should be return for all HTTP/1.x encodings.- Specified by:
getHttpVersion
in interfaceHttpFieldPreEncoder
- Returns:
- The major version this encoder is for.
- See Also:
HttpFieldPreEncoder.getHttpVersion()
-
getEncodedField
public byte[] getEncodedField(HttpHeader header, java.lang.String headerString, java.lang.String value)
- Specified by:
getEncodedField
in interfaceHttpFieldPreEncoder
- See Also:
HttpFieldPreEncoder.getEncodedField(org.eclipse.jetty.http.HttpHeader, java.lang.String, java.lang.String)
-
-