| Modifier and Type | Class and Description |
|---|---|
| public static enum | TransportBuilder.
Represents supported SASL authentication modes. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final Map | |
| private final TransportConfigBuilder |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractTransport | Returns: AbstractTransport instanceCreate the transport with the previously provided configuration. |
| public TransportConfigBuilder | Returns: TransportConfigBuilderReturns the configuration builder to configure the transport. |
| public static TransportBuilder | Returns: newTransportBuilderaddress, never null _address)Creates a new |
| public static TransportBuilder | Returns: newTransportBuilderconfig, never null _config)Creates a new |
| public static TransportBuilder | Returns: newTransportBuilderCreates a new |
| public static TransportBuilder | Returns: newTransportBuilderaddress, never null _address)Creates a new |
| public static String | Returns: String containing BusAddress or nullbus type (e.g. UNIX or TCP), never null _busType, boolean true if a listening (server) address should be created, false otherwise _listeningAddress)Creates a new dynamic bus address for the given bus type. |
| public static TransportBuilder | Returns: TransportBuildertype of session (e.g. UNIX or TCP) _transportType)Creates a new |
| pack-priv static void | |
| public BusAddress | |
| public static List | Returns: List, maybe emptyReturns a |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| PROVIDERS | back to summary |
|---|---|
| private static final Map<Object, Map<String, ITransportProvider>> PROVIDERS | |
| transportConfigBuilder | back to summary |
|---|---|
| private final TransportConfigBuilder<TransportConfigBuilder<?, TransportBuilder>, TransportBuilder> transportConfigBuilder | |
| TransportBuilder | back to summary |
|---|---|
| private TransportBuilder(TransportConfig _config) | |
| build | back to summary |
|---|---|
| public AbstractTransport build() throws DBusException, IOException Create the transport with the previously provided configuration. If autoconnect is enabled and this is a client connection, the connection will be established automatically. Establishing the connection will be retried several times to allow connection in concurrent setups. The max retry attempts are calculated by using the configured connection timeout (default: 10000 millis) divided by 500. The minimum of retries is 1.
Without autoconnect, the connection will not be started and has to be started by calling
| |
| configure | back to summary |
|---|---|
| public TransportConfigBuilder Returns the configuration builder to configure the transport.
| |
| create | back to summary |
|---|---|
| public static TransportBuilder create(String _address) throws InvalidBusAddressException Creates a new
| |
| create | back to summary |
|---|---|
| public static TransportBuilder create(TransportConfig _config) throws InvalidBusAddressException Creates a new
| |
| create | back to summary |
|---|---|
| public static TransportBuilder create() Creates a new
| |
| create | back to summary |
|---|---|
| public static TransportBuilder create(BusAddress _address) Creates a new
| |
| createDynamicSession | back to summary |
|---|---|
| public static String createDynamicSession(String _busType, boolean _listeningAddress) Creates a new dynamic bus address for the given bus type. | |
| createWithDynamicSession | back to summary |
|---|---|
| public static TransportBuilder createWithDynamicSession(String _transportType) throws DBusException Creates a new
| |
| findTransportProvider | back to summary |
|---|---|
| pack-priv static void findTransportProvider(ClassLoader _clzLoader, ModuleLayer _layer) | |
| getAddress | back to summary |
|---|---|
| public BusAddress getAddress() The currently configured BusAddress.
| |
| getRegisteredBusTypes | back to summary |
|---|---|
| public static List Returns a | |
| Modifier and Type | Field and Description |
|---|---|
| public static final TransportBuilder. | AUTH_ANONYMOUS
No authentication (allow everyone). |
| public static final TransportBuilder. | AUTH_COOKIE
Authentication using SHA Cookie. |
| public static final TransportBuilder. | AUTH_EXTERNAL
External authentication (e.g. by user ID). |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static TransportBuilder. | |
| public static TransportBuilder. |
| AUTH_ANONYMOUS | back to summary |
|---|---|
| public static final TransportBuilder. No authentication (allow everyone). | |
| AUTH_COOKIE | back to summary |
|---|---|
| public static final TransportBuilder. Authentication using SHA Cookie. | |
| AUTH_EXTERNAL | back to summary |
|---|---|
| public static final TransportBuilder. External authentication (e.g. by user ID). | |
| authMode | back to summary |
|---|---|
| private final int authMode | |
| SaslAuthMode | back to summary |
|---|---|
| private SaslAuthMode(int _authMode) | |
| getAuthMode | back to summary |
|---|---|
| public int getAuthMode() | |
| valueOf | back to summary |
|---|---|
| public static TransportBuilder. | |
| values | back to summary |
|---|---|
| public static TransportBuilder. | |