org.abstracthorizon.danube.http.logging
Class HTTPPatternProcessor

java.lang.Object
  extended by org.abstracthorizon.danube.http.logging.HTTPPatternProcessor
All Implemented Interfaces:
PatternProcessor

public class HTTPPatternProcessor
extends Object
implements PatternProcessor

This processor adds following pattern codes:

Author:
Daniel Sendula

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

bytesSentIndex

protected int bytesSentIndex
Cached index of bytes sent


bytesSent0Index

protected int bytesSent0Index
Cached index of bytes sent with zero


requestProtocolIndex

protected int requestProtocolIndex

lIndex

protected int lIndex

requestMethodIndex

protected int requestMethodIndex

queryStringiIndex

protected int queryStringiIndex

firstLineOfRequestIndex

protected int firstLineOfRequestIndex

responseStatusIndex

protected int responseStatusIndex

requestedURLIndex

protected int requestedURLIndex

remoteUserIndex

protected int remoteUserIndex

requestHeaders

protected HTTPPatternProcessor.Pair[] requestHeaders

cookies

protected HTTPPatternProcessor.Pair[] cookies
Constructor Detail

HTTPPatternProcessor

public HTTPPatternProcessor()
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.