org.apache.directory.server.kerberos.kdc.ticketgrant
Class TicketGrantingExceptionHandler

java.lang.Object
  extended byorg.apache.directory.server.protocol.shared.chain.impl.CommandBase
      extended byorg.apache.directory.server.kerberos.shared.service.ErrorMessageHandler
          extended byorg.apache.directory.server.kerberos.kdc.ticketgrant.TicketGrantingExceptionHandler
All Implemented Interfaces:
Command, Filter

public class TicketGrantingExceptionHandler
extends ErrorMessageHandler


Field Summary
 
Fields inherited from class org.apache.directory.server.protocol.shared.chain.impl.CommandBase
CONTINUE_CHAIN, STOP_CHAIN
 
Constructor Summary
TicketGrantingExceptionHandler()
           
 
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 org.apache.directory.server.kerberos.shared.service.ErrorMessageHandler
getErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TicketGrantingExceptionHandler

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

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

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.

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