protected static class RequestLogger.RequestDumper
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected int |
code |
protected static char[] |
COLON_SPACE |
protected static char[] |
CR_LF |
protected long |
duration |
protected static char[] |
ETC |
protected java.util.concurrent.ExecutorService |
executor |
protected static char[] |
HEX |
protected int |
maxPrintedBytes |
protected java.io.ByteArrayOutputStream |
out |
protected WebRequest |
req |
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> |
responseHeaders |
protected static char[] |
TWO_SPACES |
| Modifier | Constructor and Description |
|---|---|
protected |
RequestDumper(WebRequest req,
int maxPrintedBytes,
java.util.concurrent.ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
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) |
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 WebRequest req
protected final int maxPrintedBytes
protected final java.util.concurrent.ExecutorService executor
protected int code
protected java.util.LinkedHashMap<java.lang.String,java.lang.String> responseHeaders
protected java.io.ByteArrayOutputStream out
protected long duration
protected RequestDumper(WebRequest req, int maxPrintedBytes, java.util.concurrent.ExecutorService executor)
public void run()
run in interface java.lang.Runnableprotected 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)