public interface ConnectionHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
onConnected(StpConnection connection)
This event is emitted if the STP connection thread has accepted a connection.
|
void |
onDisconnect()
This event is triggered whenever the STP connection is closed.
|
void |
onException(Exception e)
This event is triggered if an exception is thrown on the STP connection thread.
|
void |
onHandshake(boolean stp1)
This event is triggered when we have received a response to
StpConnection.sendEnableStp1(). |
void |
onResponseReceived(int tag,
UmsProtos.Response response)
This event is triggered whenever a command error response is received.
|
void |
onServiceList(List<String> services)
This event is triggered upon receiving an initial service list from Opera.
|
boolean onConnected(StpConnection connection)
connection - the connection that has been acceptedvoid onServiceList(List<String> services)
services - the list of services available in the connected Opera instancevoid onHandshake(boolean stp1)
StpConnection.sendEnableStp1().stp1 - true if handshake was an STP/1 responsevoid onDisconnect()
void onException(Exception e)
e - the exception thrown on the STP connection threadvoid onResponseReceived(int tag,
UmsProtos.Response response)
tag - the internal command tag corresponding to the requestresponse - the response, or null if the response was an errorCopyright © 2012. All Rights Reserved.