org.polliwog.collectors
Class HostnameCollector

java.lang.Object
  extended by org.polliwog.collectors.HostnameCollector
All Implemented Interfaces:
Collector

public class HostnameCollector
extends java.lang.Object
implements Collector


Constructor Summary
HostnameCollector()
           
 
Method Summary
 boolean accept(AbstractField af)
          The method called to process a field.
 void init(java.lang.String val)
          The method called to init the collector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostnameCollector

public HostnameCollector()
Method Detail

init

public void init(java.lang.String val)
          throws WeblogException
Description copied from interface: Collector
The method called to init the collector.

Specified by:
init in interface Collector
Parameters:
val - The string used to init this collector. In general this is just some values to configure the collector and provide optionality in behaviour.
Throws:
WeblogException - Throw if there is an issue with initing the collector.

accept

public boolean accept(AbstractField af)
Description copied from interface: Collector
The method called to process a field. Whilst an AbstractField is passed in it will in fact be a solid instance (in general one of the classes from the org.polliwog.fields package).

Specified by:
accept in interface Collector
Parameters:
af - The AbstractField from a log entry.
Returns:
true should be returned if the collector instance allows this field, false otherwise.
See Also:
org.polliwog.data.LogEntryFormat#createEntry(String,Map)


  Copyright © 2007 Gary Bentley. All Rights Reserved.