public interface EventListener
| Modifier and Type | Method and Description |
|---|---|
ParameterValue |
eventReceived(ClientSubscription subscription,
URI actionURI,
ParameterValue parameterValue)
Callback method to receive events.
|
AuthorizationManager |
getAuthorizationManager()
Return the AuthorizationManger from the listener if not null.
|
EventSink |
getEventSink(DataStructure bindings)
Gets an event sink, which can be used when registering for event notifications from a service.
|
void |
subscriptionEndReceived(ClientSubscription subscription,
int subscriptionEndType)
Callback method to receive unexpected subscription ends from event sources.
|
void |
subscriptionTimeoutReceived(ClientSubscription subscription)
Callback method to receive timeouts of subscriptions.
|
EventSink getEventSink(DataStructure bindings)
bindings is supposed to contain at least one CommunicationBinding instance denoting a local transport address, at which incoming
notifications shall be delivered to. The EventSink is associated with the EventListener.bindings - a data structure of CommunicationBinding instances to expose the created event sink overParameterValue eventReceived(ClientSubscription subscription, URI actionURI, ParameterValue parameterValue)
In case the received event corresponds to a WSDLOperation.TYPE_SOLICIT_RESPONSE
operation, the response to send back to the event source is taken from the return value of this
method.
subscription - this is the subscription because of which the event was receivedactionURI - URI of the subscribed actionparameterValue - parameter value of notification message containing the user datavoid subscriptionEndReceived(ClientSubscription subscription, int subscriptionEndType)
subscription - subscription ended.subscriptionEndType - type of the subscription endvoid subscriptionTimeoutReceived(ClientSubscription subscription)
subscription - Ending subscription.AuthorizationManager getAuthorizationManager()