|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EventListener
The primary callback interface for handling events and other WS-Eventing related notifications.
| Method Summary | |
|---|---|
ParameterValue |
eventReceived(ClientSubscription subscription,
URI actionURI,
ParameterValue parameterValue)
Callback method to receive events. |
EventSink |
getEventSink(DataStructure bindings)
Gets an event sink, which can be used when registering for event notifications from a service. |
void |
subscriptionEndReceived(ClientSubscription subscription,
URI reason)
Callback method to receive unexpected subscription ends from event sources. |
void |
subscriptionTimeoutReceived(ClientSubscription subscription)
Callback method to receive timeouts of subscriptions. |
| Method Detail |
|---|
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 over
ParameterValue 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 data
void subscriptionEndReceived(ClientSubscription subscription,
URI reason)
subscription - subscription ended.reason - Reason why the subscription ends unexpectedlyvoid subscriptionTimeoutReceived(ClientSubscription subscription)
subscription - Ending subscription.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||