Interface ConnectorExtension<T,​E extends Exception>

  • Type Parameters:
    T - type of connection to be extended/processed
    E - type of exception which can be thrown while processing/handling exeption

    public interface ConnectorExtension<T,​E extends Exception>
    Connector extension interface to extend existing connector's functionality.
    Since:
    2.33
    • Method Detail

      • invoke

        void invoke​(ClientRequest request,
                    T extensionParam)
        Main function which allows extension of connector's functionality
        Parameters:
        request - request instance to work with (shall contain all required settings/params to be used in extension)
        extensionParam - connector's instance which is being extended
      • postConnectionProcessing

        void postConnectionProcessing​(T extensionParam)
        After connection is done some additional work may be done
        Parameters:
        extensionParam - connector's instance which is being extended
      • handleException

        boolean handleException​(ClientRequest request,
                                T extensionParam,
                                E ex)
                         throws E extends Exception
        Exception handling method
        Parameters:
        request - request instance to work with (shall contain all required settings/params to be used in extension)
        ex - exception instance which comes from connector
        extensionParam - connector's instance which is being extended
        Returns:
        true if exception was handled by this method, false otherwise
        Throws:
        E - can thor exception if required by handling
        E extends Exception