Top Description Fields Constructors Methods
org.apache.http.impl.io

public Class HttpRequestWriter

extends AbstractMessageWriter<HttpRequest>
Class Inheritance
Annotations
@Deprecated
Imports
java.io.IOException, org.apache.http.HttpRequest, org.apache.http.io.SessionOutputBuffer, org.apache.http.message.LineFormatter, org.apache.http.params.HttpParams

Deprecated

(4.3) use DefaultHttpRequestWriter

HTTP request writer that serializes its output to an instance of SessionOutputBuffer.
Since
4.0

Field Summary

Inherited from org.apache.http.impl.io.AbstractMessageWriter:
lineBuflineFormattersessionBuffer

Constructor Summary

AccessConstructor and Description
public
HttpRequestWriter(final SessionOutputBuffer buffer, final LineFormatter formatter, final HttpParams params)

Deprecated as a consequence of HttpParams being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected void
writeHeadLine(final HttpRequest
the message whose first line is to be written out.
message
)

Implements abstract org.apache.http.impl.io.AbstractMessageWriter.writeHeadLine.

Subclasses must override this method to write out the first header line based on the HttpMessage passed as a parameter.
Inherited from org.apache.http.impl.io.AbstractMessageWriter:
write

Constructor Detail

HttpRequestWriterback to summary
public HttpRequestWriter(final SessionOutputBuffer buffer, final LineFormatter formatter, final HttpParams params)

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Method Detail

writeHeadLineback to summary
protected void writeHeadLine(final HttpRequest message) throws IOException

Implements abstract org.apache.http.impl.io.AbstractMessageWriter.writeHeadLine.

Doc from org.apache.http.impl.io.AbstractMessageWriter.writeHeadLine.

Subclasses must override this method to write out the first header line based on the HttpMessage passed as a parameter.

Parameters
message:HttpRequest

the message whose first line is to be written out.

Annotations
@Override
Exceptions
IOException:
in case of an I/O error.