Top Description Methods
org.apache.hc.core5.http.message

public Interface LineFormatter

Known Direct Implementers
org.apache.hc.core5.http.message.BasicLineFormatter
Imports
org.apache.hc.core5.http.Header, org.apache.hc.core5.util.CharArrayBuffer

Interface for formatting elements of the HEAD section of an HTTP message. There are individual methods for formatting a request line, a status line, or a header line. The formatting methods are expected to produce one line of formatted content that does not include a line delimiter (such as CR-LF). Instances of this interface are expected to be stateless and thread-safe.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
formatHeader(CharArrayBuffer
buffer to write formatted content to.
buffer
,
Header
the header to format
header
)

Formats a header.

public void
formatRequestLine(CharArrayBuffer
buffer to write formatted content to.
buffer
,
RequestLine
the request line to format
reqline
)

Formats a request line.

public void
formatStatusLine(CharArrayBuffer
buffer to write formatted content to.
buffer
,
StatusLine
the status line to format
statline
)

Formats a status line.

Method Detail

formatHeaderback to summary
public void formatHeader(CharArrayBuffer buffer, Header header)

Formats a header.

Parameters
buffer:CharArrayBuffer

buffer to write formatted content to.

header:Header

the header to format

formatRequestLineback to summary
public void formatRequestLine(CharArrayBuffer buffer, RequestLine reqline)

Formats a request line.

Parameters
buffer:CharArrayBuffer

buffer to write formatted content to.

reqline:RequestLine

the request line to format

formatStatusLineback to summary
public void formatStatusLine(CharArrayBuffer buffer, StatusLine statline)

Formats a status line.

Parameters
buffer:CharArrayBuffer

buffer to write formatted content to.

statline:StatusLine

the status line to format