|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.protocol.shared.chain.impl.CommandBase
org.apache.directory.server.changepw.service.ChangePasswordExceptionHandler
public class ChangePasswordExceptionHandler
A Command for helping convert a ChangePasswordException into
an ErrorMessage to be returned to clients.
| 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 |
|---|
public ChangePasswordExceptionHandler()
| Method Detail |
|---|
public boolean execute(Context context)
throws java.lang.Exception
CommandExecute 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
execute in interface Commandcontext - The Context to be processed by this
Command
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
java.lang.Exception - general purpose exception return
to indicate abnormal termination
java.lang.IllegalArgumentException - if context
is null
public boolean postprocess(Context context,
java.lang.Exception exception)
FilterExecute any cleanup activities, such as releasing resources that
were acquired during the execute() method of this
Filter instance.
postprocess in interface Filtercontext - The Context to be processed by this
Filterexception - The Exception (if any) that was thrown
by the last Command that was executed; otherwise
null
exception was "handled" by this
method (and therefore need not be rethrown), return true;
otherwise return false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||