org.apache.directory.server.dns.service
Class DnsExceptionHandler

java.lang.Object
  extended by org.apache.directory.server.protocol.shared.chain.impl.CommandBase
      extended by org.apache.directory.server.dns.service.DnsExceptionHandler
All Implemented Interfaces:
Command, Filter

public class DnsExceptionHandler
extends CommandBase
implements Filter


Field Summary
 
Fields inherited from class org.apache.directory.server.protocol.shared.chain.impl.CommandBase
CONTINUE_CHAIN, STOP_CHAIN
 
Constructor Summary
DnsExceptionHandler()
           
 
Method Summary
 boolean execute(Context context)
          Execute a unit of processing work to be performed.
 boolean postprocess(Context context, java.lang.Exception exception)
          Execute any cleanup activities, such as releasing resources that were acquired during the execute() method of this Filter instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnsExceptionHandler

public DnsExceptionHandler()
Method Detail

execute

public boolean execute(Context context)
                throws java.lang.Exception
Description copied from interface: Command

Execute a unit of processing work to be performed. This Command may either complete the required processing and return true, or delegate remaining processing to the next Command in a Chain containing this Command by returning false

Specified by:
execute in interface Command
Parameters:
context - The Context to be processed by this Command
Returns:
true if the processing of this Context has been completed, or false if the processing of this Context should be delegated to a subsequent Command in an enclosing Chain
Throws:
java.lang.Exception - general purpose exception return to indicate abnormal termination
java.lang.IllegalArgumentException - if context is null

postprocess

public boolean postprocess(Context context,
                           java.lang.Exception exception)
Description copied from interface: Filter

Execute any cleanup activities, such as releasing resources that were acquired during the execute() method of this Filter instance.

Specified by:
postprocess in interface Filter
Parameters:
context - The Context to be processed by this Filter
exception - The Exception (if any) that was thrown by the last Command that was executed; otherwise null
Returns:
If a non-null exception was "handled" by this method (and therefore need not be rethrown), return true; otherwise return false


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.