org.apache.commons.chain.impl
Class ExceptionFilter

java.lang.Object
  extended by org.apache.commons.chain.impl.NonDelegatingCommand
      extended by org.apache.commons.chain.impl.ExceptionCommand
          extended by org.apache.commons.chain.impl.ExceptionFilter
All Implemented Interfaces:
Command, Filter

public class ExceptionFilter
extends ExceptionCommand
implements Filter

Implementation of Filter that logs its identifier and and throws an Exception.

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
ExceptionFilter()
           
ExceptionFilter(String id1, String id2)
           
 
Method Summary
 String getId2()
           
 boolean postprocess(Context context, Exception exception)
           
 void setId2(String id2)
           
 
Methods inherited from class org.apache.commons.chain.impl.ExceptionCommand
execute
 
Methods inherited from class org.apache.commons.chain.impl.NonDelegatingCommand
execute, log, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.chain.Command
execute
 

Field Detail

id2

protected String id2
Constructor Detail

ExceptionFilter

public ExceptionFilter()

ExceptionFilter

public ExceptionFilter(String id1,
                       String id2)
Method Detail

getId2

public String getId2()

setId2

public void setId2(String id2)

postprocess

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


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