protected static class RequestLogger.RequestLoggerTask
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected static char[] |
COLON_SPACE |
protected static char[] |
CR_LF |
protected static char[] |
ETC |
protected java.util.concurrent.ExecutorService |
executor |
protected static char[] |
HEX |
protected int |
maxPrintedBytes |
protected java.util.LinkedList<RequestLogger.RequestProperties> |
queue |
protected java.util.concurrent.atomic.AtomicBoolean |
running |
protected static char[] |
TWO_SPACES |
| Modifier | Constructor and Description |
|---|---|
protected |
RequestLoggerTask(int maxPrintedBytes,
java.util.concurrent.ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(RequestLogger.RequestProperties props) |
protected void |
printBytes(java.lang.StringBuilder tmp,
byte[] bytes,
java.lang.String contentType,
java.lang.String contentEncoding) |
protected void |
printDecimal(java.lang.StringBuilder tmp,
int value) |
protected void |
printHex(java.lang.StringBuilder tmp,
byte[] bytes) |
protected void |
printRequest(RequestLogger.RequestProperties props) |
void |
run() |
protected static final char[] CR_LF
protected static final char[] HEX
protected static final char[] TWO_SPACES
protected static final char[] COLON_SPACE
protected static final char[] ETC
protected final int maxPrintedBytes
protected final java.util.concurrent.ExecutorService executor
protected final java.util.LinkedList<RequestLogger.RequestProperties> queue
protected final java.util.concurrent.atomic.AtomicBoolean running
protected RequestLoggerTask(int maxPrintedBytes,
java.util.concurrent.ExecutorService executor)
public void execute(RequestLogger.RequestProperties props)
public void run()
run in interface java.lang.Runnableprotected void printRequest(RequestLogger.RequestProperties props)
protected void printBytes(java.lang.StringBuilder tmp,
byte[] bytes,
java.lang.String contentType,
java.lang.String contentEncoding)
protected void printHex(java.lang.StringBuilder tmp,
byte[] bytes)
protected void printDecimal(java.lang.StringBuilder tmp,
int value)