org.abstracthorizon.danube.support.logging.patternsupport
Class SocketDetailsProcessor

java.lang.Object
  extended by org.abstracthorizon.danube.support.logging.patternsupport.SocketDetailsProcessor
All Implemented Interfaces:
PatternProcessor

public class SocketDetailsProcessor
extends Object
implements PatternProcessor

This processor handles following parameters (if present):

Author:
Daniel Sendula

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

localIPIndex

protected int localIPIndex
Cached index of local ip address parameter


localPortIndex

protected int localPortIndex
Cached index of local port number parameter


remoteIPIndex

protected int remoteIPIndex
Cached index of remote ip address parameter


remoteHostNameIndex

protected int remoteHostNameIndex
Cached index of remote host name parameter

Constructor Detail

SocketDetailsProcessor

public SocketDetailsProcessor()
Constructor

Method Detail

init

public int init(int index,
                StringBuffer message)
Checks if parameters are present and if so replaces it and caches their indexes

Specified by:
init in interface PatternProcessor
Parameters:
index - next index to be used
message - message to be altered

process

public void process(Connection connection,
                    Object[] array)
Adds parameter values to cached index positions

Specified by:
process in interface PatternProcessor
Parameters:
connection - connection
array - array


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.