|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.support.logging.patternsupport.SocketDetailsProcessor
public class SocketDetailsProcessor
This processor handles following parameters (if present):
%A - local IP address%a - remote IP address%p - local port number%h - remote host name
| Field Summary | |
|---|---|
protected int |
localIPIndex
Cached index of local ip address parameter |
protected int |
localPortIndex
Cached index of local port number parameter |
protected int |
remoteHostNameIndex
Cached index of remote host name parameter |
protected int |
remoteIPIndex
Cached index of remote ip address parameter |
| Constructor Summary | |
|---|---|
SocketDetailsProcessor()
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 localIPIndex
protected int localPortIndex
protected int remoteIPIndex
protected int remoteHostNameIndex
| Constructor Detail |
|---|
public SocketDetailsProcessor()
| Method Detail |
|---|
public int init(int index,
StringBuffer message)
init in interface PatternProcessorindex - next index to be usedmessage - message to be altered
public void process(Connection connection,
Object[] array)
process in interface PatternProcessorconnection - connectionarray - array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||