org.apache.commons.chain.impl
Class NonDelegatingFilter

java.lang.Object
  extended by org.apache.commons.chain.impl.NonDelegatingCommand
      extended by org.apache.commons.chain.impl.NonDelegatingFilter
All Implemented Interfaces:
Command, Filter
Direct Known Subclasses:
DelegatingFilter

public class NonDelegatingFilter
extends NonDelegatingCommand
implements Filter

Implementation of Filter that logs its identifier and and returns true.

Version:
$Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan

Field Summary
protected  String id2
           
 
Fields inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
id
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
NonDelegatingFilter()
           
NonDelegatingFilter(String id1, String id2)
           
 
Method Summary
 boolean execute(Context context)
           
 String getId2()
           
 boolean postprocess(Context context, Exception exception)
           
 void setId2(String id2)
           
 
Methods inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
log, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id2

protected String id2
Constructor Detail

NonDelegatingFilter

public NonDelegatingFilter()

NonDelegatingFilter

public NonDelegatingFilter(String id1,
                           String id2)
Method Detail

getId2

public String getId2()

setId2

public void setId2(String id2)

execute

public boolean execute(Context context)
                throws Exception
Specified by:
execute in interface Command
Overrides:
execute in class NonDelegatingCommand
Throws:
Exception

postprocess

public boolean postprocess(Context context,
                           Exception exception)
Specified by:
postprocess in interface Filter


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.