|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.support.logging.patternsupport.CurrentDateTimeProcessor
public class CurrentDateTimeProcessor
This processor adds %t
parameter handling replacing it with the
current date and time in Common Log Format (see Apache HTTP server)
Field Summary | |
---|---|
static DateFormat |
COMMON_LOG_FORMAT
Common log format |
protected int |
dateIndex
Index of date field |
static DateFormat |
DATETIME_LOG_FORMAT
Common log format |
protected int |
dateTimeIndex
Index of date time fields |
Constructor Summary | |
---|---|
CurrentDateTimeProcessor()
Constructor |
Method Summary | |
---|---|
int |
init(int index,
StringBuffer message)
Checks if parameter is present and if so replaces it and caches its index |
void |
process(Connection connection,
Object[] array)
Adds current time and date in common log format at cached index into the array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DateFormat COMMON_LOG_FORMAT
public static final DateFormat DATETIME_LOG_FORMAT
protected int dateIndex
protected int dateTimeIndex
Constructor Detail |
---|
public CurrentDateTimeProcessor()
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 |