public class RequestLogger extends HttpMiddleware implements HttpConstants
| Modifier and Type | Field and Description |
|---|---|
protected static char[] |
CR_LF |
protected static org.slf4j.Logger |
logger |
protected int |
maxPrintedBytes |
ACCEPT, ACCEPT_ENCODING, AUTHORIZATION, CACHE_CONTROL, CHUNKED, CLOSE, CONNECT, CONNECTION, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, CONTENT_TYPE_HTML, CONTENT_TYPE_JSON, COOKIE, DEFLATE, DELETE, ETAG, GET, GZIP, HEAD, IF_NONE_MATCH, KEEP_ALIVE, LOCATION, META_CONTENT_TYPE, META_HEADERS, META_LOCATION, META_STATUS, META_TEMPLATE, NO_CACHE, OPTIONS, PATCH, POST, PROPERTY_COOKIES, PROPERTY_SESSION_ID, PROPERTY_USER, PUT, SET_COOKIE, TRACE, TRANSFER_ENCODING, WWW_AUTHENTICATE, X_FORWARDED_FOR| Constructor and Description |
|---|
RequestLogger() |
RequestLogger(int maxPrintedBytes) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxPrintedBytes() |
RequestProcessor |
install(RequestProcessor next,
io.datatree.Tree config) |
protected void |
printBytes(java.lang.StringBuilder tmp,
byte[] bytes) |
void |
setMaxPrintedBytes(int maxDumpSize) |
protected static final org.slf4j.Logger logger
protected static final char[] CR_LF
protected int maxPrintedBytes
public RequestLogger()
public RequestLogger(int maxPrintedBytes)
public RequestProcessor install(RequestProcessor next, io.datatree.Tree config)
install in class HttpMiddlewareprotected void printBytes(java.lang.StringBuilder tmp,
byte[] bytes)
public int getMaxPrintedBytes()
public void setMaxPrintedBytes(int maxDumpSize)
maxDumpSize - max number of printed bytes