Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory
11g Release 2 (11.1.2.2.0)

E38583-02


oracle.oud.plugin
Class DefaultResultHandler<T extends Result>

java.lang.Object
  extended by oracle.oud.plugin.DefaultResultHandler<T>

Type Parameters:
T - the type of result handler wrapped by this class.
All Implemented Interfaces:
ResultHandler

public class DefaultResultHandler<T extends Result>
extends java.lang.Object
implements ResultHandler

This class defines a result handler wrapper that forwards all calls to the provided result handler.

This class is provided for convenience only. Override the appropriate handle...() method to intercept the appropriate result.


Constructor Summary
DefaultResultHandler(ResultHandler resultHandler)
          Construct a new instance of this class.

 

Method Summary
 void handleErrorResult(Result error)
          Invoked when the operation has failed.
 void handleResult(Result result)
          Invoked when the operation has completed successfully.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.oud.responses.ResultHandler
handleErrorResult, handleResult

 

Constructor Detail

DefaultResultHandler

public DefaultResultHandler(ResultHandler resultHandler)
Construct a new instance of this class.
Parameters:
resultHandler - the handler that will receive all calls defined by the ResultHandler interface.

Method Detail

handleErrorResult

public void handleErrorResult(Result error)
Description copied from interface: ResultHandler
Invoked when the operation has failed.
Specified by:
handleErrorResult in interface ResultHandler
Parameters:
error - The error result exception indicating why the operation has failed.

handleResult

public void handleResult(Result result)
Description copied from interface: ResultHandler
Invoked when the operation has completed successfully.
Specified by:
handleResult in interface ResultHandler
Parameters:
result - The result of the operation.

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory
11g Release 2 (11.1.2.2.0)

E38583-02


Copyright © 2013, Oracle and/or its affiliates. All rights reserved.