Interface ConnectionOpenable.ConnectionOpenAutomaton<CON>

    • Method Detail

      • isOpenable

        boolean isOpenable​(CON aConnection)
        Determines whether the given connection may get opened, if true then component may open a connection with the given connection via the ConnectionOpenable.open(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:
        aConnection - The connection for which to determine whether it can be used to open a connection.
        Returns:
        True if ConnectionOpenable.open(Object) is theoretically possible.