| Package | Description |
|---|---|
| com.digi.wva.async | |
| com.digi.wva.device |
| Modifier and Type | Method and Description |
|---|---|
void |
EventChannelStateListener.onConnected(WVA device)
Callback triggered when the
EventChannel's
socket has been successfully created (or, if the socket already existed,
when the thread has started up). |
void |
EventChannelStateListener.onError(WVA device,
IOException error)
Callback triggered when the
EventChannel encounters an exception
(IOException, specifically) and stops its thread. |
void |
EventChannelStateListener.onFailedConnection(WVA device,
int port)
Callback is triggered when the EventChannel was unable to make an initial
connection to the device.
|
void |
EventChannelStateListener.onRemoteClose(WVA device,
int port)
Callback triggered when the EventChannel detects that the WVA has closed
its data socket (generally because the web services process
on the device has restarted, or because the device is shutting down)
|
void |
EventChannelStateListener.reconnectAfter(WVA device,
long millis,
int port)
Launch a new thread, and in that thread, sleep the given length of time,
disconnect the data stream and reconnect.
|
| Modifier and Type | Method and Description |
|---|---|
WVA |
WVA.clearBasicAuth()
Clears any previously-set basic authentication for HTTP or HTTPS requests.
|
static WVA |
WVA.getDevice(String hostname,
HttpClient client,
VehicleData vehicleData,
Ecus ecus,
Hardware hw,
FaultCodes fc)
WVA Object Factory.
|
WVA |
WVA.setHttpPort(int port)
Change the port used for HTTP requests on this WVA.
|
WVA |
WVA.setHttpsPort(int port)
Change the port used for HTTPS requests on this WVA.
|
WVA |
WVA.useBasicAuth(String username,
String password)
Sets the basic authentication credentials (username and password) to be used
when interacting with the WVA over HTTP or HTTPS.
|
WVA |
WVA.useSecureHttp(boolean secure)
Sets whether HTTP communication with the WVA should be done through HTTP or HTTPS.
|
| Constructor and Description |
|---|
EventChannel(WVA owner,
Socket socket) |
EventChannel(WVA owner,
String hostname,
int port) |
EventChannel(WVA owner,
String hostname,
int port,
EventChannelStateListener listener) |