T
- type of connection to be extended/processedE
- type of exception which can be thrown while processing/handling exeptionpublic interface ConnectorExtension<T,E extends Exception>
Modifier and Type | Method and Description |
---|---|
boolean |
handleException(ClientRequest request,
T extensionParam,
E ex)
Exception handling method
|
void |
invoke(ClientRequest request,
T extensionParam)
Main function which allows extension of connector's functionality
|
void |
postConnectionProcessing(T extensionParam)
After connection is done some additional work may be done
|
void invoke(ClientRequest request, T extensionParam)
request
- request instance to work with (shall contain all required settings/params to be used in extension)extensionParam
- connector's instance which is being extendedvoid postConnectionProcessing(T extensionParam)
extensionParam
- connector's instance which is being extendedboolean handleException(ClientRequest request, T extensionParam, E ex) throws E extends Exception
request
- request instance to work with (shall contain all required settings/params to be used in extension)ex
- exception instance which comes from connectorextensionParam
- connector's instance which is being extendedE
- can thor exception if required by handlingE extends Exception
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.