@Contract(threading=IMMUTABLE) public class BasicLineFormatter extends Object implements LineFormatter
LineFormatter implementation.| 限定符和类型 | 字段和说明 |
|---|---|
static BasicLineFormatter |
INSTANCE |
| 构造器和说明 |
|---|
BasicLineFormatter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
LineFormatterformatRequestLine 在接口中 LineFormatterbuffer - buffer to write formatted content to.reqline - the request line to formatpublic void formatStatusLine(CharArrayBuffer buffer, StatusLine statusLine)
LineFormatterformatStatusLine 在接口中 LineFormatterbuffer - buffer to write formatted content to.statusLine - the status line to formatpublic void formatHeader(CharArrayBuffer buffer, Header header)
LineFormatterformatHeader 在接口中 LineFormatterbuffer - buffer to write formatted content to.header - the header to formatCopyright © 2023. All rights reserved.