Package org.apache.hc.core5.http.message
Interface LineFormatter
-
- All Known Implementing Classes:
BasicLineFormatter
public interface LineFormatter
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
formatHeader(CharArrayBuffer buffer, Header header)
Formats a header.void
formatRequestLine(CharArrayBuffer buffer, RequestLine reqline)
Formats a request line.void
formatStatusLine(CharArrayBuffer buffer, StatusLine statline)
Formats a status line.
-
-
-
Method Detail
-
formatRequestLine
void formatRequestLine(CharArrayBuffer buffer, RequestLine reqline)
Formats a request line.- Parameters:
buffer
- buffer to write formatted content to.reqline
- the request line to format
-
formatStatusLine
void formatStatusLine(CharArrayBuffer buffer, StatusLine statline)
Formats a status line.- Parameters:
buffer
- buffer to write formatted content to.statline
- the status line to format
-
formatHeader
void formatHeader(CharArrayBuffer buffer, Header header)
Formats a header.- Parameters:
buffer
- buffer to write formatted content to.header
- the header to format
-
-