@Contract(threading=IMMUTABLE) public class BasicLineFormatter extends Object implements LineFormatter
LineFormatter
implementation.Modifier and Type | Field and Description |
---|---|
static BasicLineFormatter |
INSTANCE |
Constructor and Description |
---|
BasicLineFormatter() |
Modifier and Type | Method and 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 statusLine)
Formats a status line.
|
public static final BasicLineFormatter INSTANCE
public void formatRequestLine(CharArrayBuffer buffer, RequestLine reqline)
LineFormatter
formatRequestLine
in interface LineFormatter
buffer
- buffer to write formatted content to.reqline
- the request line to formatpublic void formatStatusLine(CharArrayBuffer buffer, StatusLine statusLine)
LineFormatter
formatStatusLine
in interface LineFormatter
buffer
- buffer to write formatted content to.statusLine
- the status line to formatpublic void formatHeader(CharArrayBuffer buffer, Header header)
LineFormatter
formatHeader
in interface LineFormatter
buffer
- buffer to write formatted content to.header
- the header to formatCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.