INPUT
- The type of the input connection to be used.OUTPUT
- The type of the output connection to be used.public static interface InputOutputOpenable.InputOutputOpenAutomaton<INPUT,OUTPUT> extends InputOutputOpenable<INPUT,OUTPUT>, OpenedAccessor
InputOutputOpenable.InputOutputOpenAutomaton
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
InputOutputOpenable.InputOutputOpenAutomaton
interface has been introduced.InputOutputOpenable.InputOutputOpenAutomaton<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
InputOutputOpenable.open(Object, Object) method. |
open
isOpened
boolean isOpenable(INPUT aInputConnection, OUTPUT aOutputConnection)
InputOutputOpenable.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.InputOutputOpenable.open(Object, Object)
is theoretically
possible.Copyright © 2015. All rights reserved.