INPUT
- The type of the input connection to be used.OUTPUT
- The type of the output connection to be used.public static interface BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT,OUTPUT> extends BidirectionalConnectionOpenable<INPUT,OUTPUT>, OpenedAccessor
BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton
interface defines those
methods related to the opening of connection(s) life-cycle. The semantics
of this interface is very similar to that of the
Configurable.ConfigureAutomaton
interface. To clarify the context regarding
connections, the BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton
interface
has been introduced.BidirectionalConnectionOpenable.BidirectionalConnectionOpenAutomaton<INPUT,OUTPUT>
OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty
Modifier and Type | Method and Description |
---|---|
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. |
open
isOpened
boolean isOpenable(INPUT aInputConnection, OUTPUT aOutputConnection)
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).
---------------------------------------------------------------------aInputConnection
- The input connection used for opening the
connection.aOutputConnection
- The output connection used for opening the
connection.BidirectionalConnectionOpenable.open(Object, Object)
is theoretically
possible.Copyright © 2018. All rights reserved.