public class RequestLogger extends HttpMiddleware implements HttpConstants
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RequestLogger.RequestDumper |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ExecutorService |
executor |
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_LOCALE, 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 |
|---|---|
java.util.concurrent.ExecutorService |
getExecutor()
Returns the ExecutorService.
|
int |
getMaxPrintedBytes()
Returns the max number of printed bytes.
|
RequestProcessor |
install(RequestProcessor next,
io.datatree.Tree config) |
void |
setExecutor(java.util.concurrent.ExecutorService executor)
Sets the ExecutorService.
|
void |
setMaxPrintedBytes(int maxDumpSize)
Sets the max number of printed bytes.
|
protected static final org.slf4j.Logger logger
protected int maxPrintedBytes
protected java.util.concurrent.ExecutorService executor
public RequestLogger()
public RequestLogger(int maxPrintedBytes)
public RequestProcessor install(RequestProcessor next, io.datatree.Tree config)
install in class HttpMiddlewarepublic int getMaxPrintedBytes()
public void setMaxPrintedBytes(int maxDumpSize)
maxDumpSize - max number of printed bytespublic java.util.concurrent.ExecutorService getExecutor()
public void setExecutor(java.util.concurrent.ExecutorService executor)
executor - the executor to set