|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnectionHandler
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
boolean onConnected(StpConnection connection)
connection - the connection that has been accepted
void 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 thread
void onResponseReceived(int tag,
UmsProtos.Response response)
tag - the internal command tag corresponding to the requestresponse - the response, or null if the response was an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||