|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.http.logging.HTTPPatternProcessor
public class HTTPPatternProcessor
This processor adds following pattern codes:
%b
- bytes sent excluding headers or "-" if nothing%B
- bytes sent excluding headers or 0 if nothing%H
- request protocol%l
- always "-"%m
- request method%q
- query string%r
- first line of the request%s
- status code of the response%>s
- status code of the response (same as %s)%S
- user session ID (not implemented yet)%u
- remote authenticated user (not implemented yet)%U
- requested url path%v
- server local name (not implemented yet)
Nested Class Summary | |
---|---|
protected static class |
HTTPPatternProcessor.Pair
|
Field Summary | |
---|---|
protected int |
bytesSent0Index
Cached index of bytes sent with zero |
protected int |
bytesSentIndex
Cached index of bytes sent |
protected HTTPPatternProcessor.Pair[] |
cookies
|
protected int |
firstLineOfRequestIndex
|
protected int |
lIndex
|
protected int |
queryStringiIndex
|
protected int |
remoteUserIndex
|
protected int |
requestedURLIndex
|
protected HTTPPatternProcessor.Pair[] |
requestHeaders
|
protected int |
requestMethodIndex
|
protected int |
requestProtocolIndex
|
protected int |
responseStatusIndex
|
Constructor Summary | |
---|---|
HTTPPatternProcessor()
Constructor |
Method Summary | |
---|---|
int |
init(int index,
StringBuffer message)
Checks if parameters are present and if so replaces it and caches their indexes |
void |
process(Connection connection,
Object[] array)
Adds parameter values to cached index positions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int bytesSentIndex
protected int bytesSent0Index
protected int requestProtocolIndex
protected int lIndex
protected int requestMethodIndex
protected int queryStringiIndex
protected int firstLineOfRequestIndex
protected int responseStatusIndex
protected int requestedURLIndex
protected int remoteUserIndex
protected HTTPPatternProcessor.Pair[] requestHeaders
protected HTTPPatternProcessor.Pair[] cookies
Constructor Detail |
---|
public HTTPPatternProcessor()
Method Detail |
---|
public int init(int index, StringBuffer message)
init
in interface PatternProcessor
index
- next index to be usedmessage
- message to be alteredpublic void process(Connection connection, Object[] array)
process
in interface PatternProcessor
connection
- connectionarray
- array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |