Interface BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT,OUTPUT>

    • Method Detail

      • isOpenable

        boolean isOpenable​(INPUT aInputConnection,
                           OUTPUT aOutputConnection)
        Determines whether the given connection may get opened, if true then component may open a connection with the given connection via the BidirectionalConnectionOpenable.open(Object, Object) method. Usually no physical connection is established; usually criteria describing the provided connection are evaluated; for example the connection is tested against a black list, a white list or against well-formedness or whether the specified protocols are supported (in case of a connection being a String URL beginning with "http://", "ftp://" or similar). --------------------------------------------------------------------- CAUTION: Even in case true is returned, the actual opening of a connection may fail (e.g. due to network failure or authentication issues). ---------------------------------------------------------------------
        Parameters:
        aInputConnection - The input connection used for opening the connection.
        aOutputConnection - The output connection used for opening the connection.
        Returns:
        True if BidirectionalConnectionOpenable.open(Object, Object) is theoretically possible.