Class DefaultHttpRequestWriter
java.lang.Object
org.apache.hc.core5.http.impl.io.AbstractMessageWriter<ClassicHttpRequest>
org.apache.hc.core5.http.impl.io.DefaultHttpRequestWriter
- All Implemented Interfaces:
HttpMessageWriter<ClassicHttpRequest>
HTTP request writer that serializes its output to an instance of
SessionOutputBuffer.- Since:
- 4.3
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpRequestWriter(Http1Config http1Config, LineFormatter formatter) DefaultHttpRequestWriter(LineFormatter formatter) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpVersionprotocolVersion(HttpRequest message) Determines the HTTP protocol version to be communicated to the opposite endpoint in the message header.protected voidwriteHeadLine(ClassicHttpRequest message, CharArrayBuffer lineBuf) Subclasses must override this method to write out the first header line based on theHttpMessagepassed as a parameter.Methods inherited from class AbstractMessageWriter
getLineFormatter, write
-
Field Details
-
http1Config
-
-
Constructor Details
-
DefaultHttpRequestWriter
- Since:
- 5.3
-
DefaultHttpRequestWriter
-
DefaultHttpRequestWriter
public DefaultHttpRequestWriter()
-
-
Method Details
-
protocolVersion
Determines the HTTP protocol version to be communicated to the opposite endpoint in the message header.- Since:
- 5.3
-
writeHeadLine
protected void writeHeadLine(ClassicHttpRequest message, CharArrayBuffer lineBuf) throws IOException Description copied from class:AbstractMessageWriterSubclasses must override this method to write out the first header line based on theHttpMessagepassed as a parameter.- Specified by:
writeHeadLinein classAbstractMessageWriter<ClassicHttpRequest>- Parameters:
message- the message whose first line is to be written out.lineBuf- line buffer- Throws:
IOException- in case of an I/O error.
-