org.apache.directory.server.changepw.service
Class ChangePasswordExceptionHandler

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

public class ChangePasswordExceptionHandler
extends CommandBase
implements Filter

A Command for helping convert a ChangePasswordException into an ErrorMessage to be returned to clients.

Version:
$Rev: 434438 $, $Date: 2006-08-24 13:17:02 -0400 (Thu, 24 Aug 2006) $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.server.protocol.shared.chain.impl.CommandBase
CONTINUE_CHAIN, STOP_CHAIN
 
Constructor Summary
ChangePasswordExceptionHandler()
           
 
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

ChangePasswordExceptionHandler

public ChangePasswordExceptionHandler()
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