public class DefaultClient extends java.lang.Object implements DeviceListener, ServiceListener, SearchCallback, EventListener, HelloListener
The basic idea behind this class is: it extends several callback interfaces and provides empty implementations for all of their methods, so that an implementing client can easily overwrite those in which it is really interested in.
A simple use case of this class could be a client searching for a particular device. This can be accomplished by a
call to searchDevice(SearchParameter) providing the desired search criteria within the expected
SearchParameter argument. The framework will then start looking asynchronously for devices matching
those criteria and will invoke deviceFound(DeviceReference, SearchParameter) each time a corresponding
device is discovered.
Searching for services can be done in a similar manner, this time using the method searchService(SearchParameter) to initiate the search and receiving results by means of serviceFound(ServiceReference, SearchParameter).
When a client starts a device search, it is automatically registered as
DeviceListener to any device matching the search criteria. This is especially useful for getting
notifications about state changes of the device, such as a device shut-down, an
update of a device's metadata, etc.
Listening to service state changes differs from the aforementioned approach. In order to start receiving service
update notifications, a client must register itself for that purpose. It will
then be notified about any state change regarding every service the JMEDS framework knows about. This also
includes any services not explicitly searched for by this client. As a client
want to listen for new devices in the network, the client must register for hello messages with one of the
registerHelloListening() methods. The incoming messages will call the helloReceived(HelloData)
method which must be overwritten to interact with the new devices.
A simple client implementation interested in devices providing the ex:Printer port type (where
ex is a XML namespace prefix referring to the http://www.example.org/printing namespace)
could look like:
// create a new client
Client client = new DefaultClient() {
// overwrite deviceFound method in order to receive callbacks
public void deviceFound(DeviceReference devRef, SearchParameter search) {
// start interacting with matching device
...
}
// overwrite serviceFound method in order to receive callbacks
public void serviceFound(ServiceReference servRef, SearchParameter search) {
// start interacting with matching service
...
}
// overwrite helloReceived method in order to receive incoming hello messages
public void helloReceived(HelloData helloData) {
// start interacting with incoming hello
...
}
};
// describe device port type to look for
QName printerType = new QName("Printer", "http://www.example.org/printlng");
QNameSet types = new QNameSet(printerType);
// create a search parameter object and store desired type(s) into it
SearchParameter criteria = new SearchParameter();
criteria.setDeviceTypes(types);
// start the asynchronous search
client.searchDevice(criteria);
| Modifier and Type | Field and Description |
|---|---|
protected HashMap |
discoveryAutoBindingsForHelloListening |
protected HashMap |
discoveryBindingsDownForHelloListening |
protected HashMap |
discoveryBindingsUpForHelloListening |
protected HashMap |
helloReceivers |
| Constructor and Description |
|---|
DefaultClient()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSupportedProtocolInfo(ProtocolInfo pinfo) |
void |
announceCommunicationBindingDestroyed1(Binding binding,
boolean isDiscovery) |
void |
announceCommunicationBindingDown1(CommunicationBinding binding) |
void |
announceCommunicationBindingUp1(CommunicationBinding binding) |
void |
announceDiscoveryBindingDestroyed1(DiscoveryBinding binding,
DiscoveryAutoBinding dab) |
void |
announceDiscoveryBindingDown1(DiscoveryBinding binding) |
void |
announceDiscoveryBindingUp1(DiscoveryBinding binding) |
void |
announceNewCommunicationBindingAvailable1(Binding binding,
boolean isDiscovery)
CommunicationListenerMethods
|
void |
announceNewDiscoveryBindingAvailable1(DiscoveryBinding binding,
DiscoveryAutoBinding dab) |
void |
announceNewInterfaceAvailable1(java.lang.Object iface) |
void |
announceNewOutgoingDiscoveryInfoAvailable1(OutgoingDiscoveryInfo outgoingDiscoveryInfo) |
void |
announceOutgoingDiscoveryInfoDestroyed1(OutgoingDiscoveryInfo outgoingDiscoveryInfo) |
void |
deviceBuiltUp(DeviceReference deviceRef,
Device device)
Callback method, if device within the
DeviceReference was created. |
void |
deviceBye(DeviceReference deviceRef)
Callback method, if device bye was received or the local device was stopped.
|
void |
deviceChanged(DeviceReference deviceRef)
Callback method, if device was changed and the device data is no longer accurate.
|
void |
deviceCommunicationErrorOrReset(DeviceReference deviceRef)
Callback method, if communication with the remote device of the
DeviceReference has
failed or the reference was reset. |
void |
deviceCompletelyDiscovered(DeviceReference deviceRef)
Callback method, if discovery metadata was completely received from device (via directed
probe).
|
void |
deviceFound(DeviceReference devRef,
SearchParameter search)
Deprecated.
|
void |
deviceFound(DeviceReference devRef,
SearchParameter search,
java.lang.String comManId)
This method is called each time a device matching the initial search criteria (as contained
within argument
search) has been found. |
void |
deviceRunning(DeviceReference deviceRef)
Callback method, if device is usable.
|
ParameterValue |
eventReceived(ClientSubscription subscription,
URI actionURI,
ParameterValue parameterValue)
Callback method to receive events.
|
void |
finishedSearching(int searchIdentifier,
boolean entityFound,
SearchParameter search)
This method is called when the search timeout is reached.
|
EventSink |
generateEventSink(int configurationId)
Generates an event sink which can be used when registering for event notifications from a service.
|
AuthorizationManager |
getAuthorizationManager()
Return the AuthorizationManger from the listener if not null.
|
CommunicationStructureListener |
getCommunicationStructureListener() |
HashMap |
getDefaultOutgoingDiscoveryInfos() |
Set |
getDefaultOutgoingDiscoveryInfos(java.lang.String comManId) |
Set |
getDefaultOutgoingDiscoveryInfosAutoBinding(java.lang.String comManId) |
DeviceReference |
getDeviceReference(EndpointReference deviceEpr)
Deprecated.
|
DeviceReference |
getDeviceReference(EndpointReference deviceEpr,
DiscoveryBinding binding)
Deprecated.
|
DeviceReference |
getDeviceReference(EndpointReference deviceEpr,
DiscoveryBinding binding,
java.lang.String comManId)
Gets device reference of device with specified endpoint reference.
|
DeviceReference |
getDeviceReference(EndpointReference deviceEpr,
SecurityKey key)
Deprecated.
|
DeviceReference |
getDeviceReference(EndpointReference deviceEpr,
SecurityKey key,
DiscoveryBinding binding,
java.lang.String comManId)
Gets device reference of device with specified endpoint reference.
|
DeviceReference |
getDeviceReference(EndpointReference deviceEpr,
SecurityKey key,
java.lang.String comManId)
Gets device reference of device with specified endpoint reference.
|
DeviceReference |
getDeviceReference(EndpointReference deviceEpr,
java.lang.String comManId)
Gets device reference of device with specified endpoint reference.
|
DeviceReference |
getDeviceReference(HelloData helloData)
Gets device reference of device which sent the specified hello data.
|
DeviceReference |
getDeviceReference(HelloData helloData,
SecurityKey key)
Gets device reference of device which sent the specified hello data.
|
Iterator |
getDiscoveryAutoBindingsForHelloListening() |
Iterator |
getDiscoveryBindingsForHelloListening() |
EventSink |
getEventSink(DataStructure bindings)
Gets an event sink, which can be used when registering for event notifications from a service.
|
ServiceReference |
getServiceReference(EndpointReference serviceEpr)
Deprecated.
|
ServiceReference |
getServiceReference(EndpointReference serviceEpr,
SecurityKey key)
Deprecated.
|
ServiceReference |
getServiceReference(EndpointReference serviceEpr,
SecurityKey key,
java.lang.String comManId)
Gets service reference of service with specified endpoint reference.
|
ServiceReference |
getServiceReference(EndpointReference serviceEpr,
java.lang.String comManId)
Gets service reference of service with specified endpoint reference.
|
HashMap |
getSupportedProtocolInfos() |
HashSet |
getSupportedProtocolInfos(java.lang.String comManId) |
boolean |
hasDiscoveryAutoBindingsForHelloListening() |
boolean |
hasDiscoveryBindingsForHelloListening() |
void |
helloReceived(HelloData helloData)
This method is called, if matching hello was received.
|
boolean |
isInDiscoveryAutoBindingsForHelloListening(DiscoveryAutoBinding binding) |
boolean |
isInDiscoveryBindingsForHelloListening(DiscoveryBinding binding) |
void |
noDevicesFound(SearchParameter search) |
void |
registerHelloListening()
Registers for incoming HelloMessages for all possible domains.
|
void |
registerHelloListening(DiscoveryAutoBinding binding)
Registers for incoming Hello messages.
|
void |
registerHelloListening(DiscoveryBinding binding)
Registers for incoming Hello messages.
|
void |
registerHelloListening(SearchParameter search)
Registers for incoming HelloMessages for all possible domains, with specified types and scopes (
SearchParameter). |
void |
registerHelloListening(SearchParameter search,
DiscoveryAutoBinding binding)
Registers for incoming Hello messages, which matches to the specified types and scopes (
SearchParameter). |
protected void |
registerHelloListening(SearchParameter search,
DiscoveryAutoBinding binding,
HelloListener helloListener,
org.ws4d.java.client.DefaultClient.HelloReceiver helloReceiver) |
void |
registerHelloListening(SearchParameter search,
DiscoveryBinding binding)
Registers for incoming Hello messages, which matches to the specified types and scopes (
SearchParameter). |
void |
registerHelloListening(SearchParameter search,
DiscoveryBinding binding,
HelloListener helloListener)
Registers for incoming HelloMessages, which matches to the specified types and scopes (
SearchParameter). |
protected void |
registerHelloListening(SearchParameter search,
DiscoveryBinding binding,
HelloListener helloListener,
org.ws4d.java.client.DefaultClient.HelloReceiver helloReceiver) |
protected void |
registerHelloListening(SearchParameter search,
DiscoveryBinding binding,
HelloListener helloListener,
org.ws4d.java.client.DefaultClient.HelloReceiver helloReceiver,
boolean byAutoBinding) |
protected void |
registerHelloListening(SearchParameter search,
HelloListener helloListener) |
void |
registerServiceListening()
Registers client for service reference changes.
|
void |
removeSupportedProtocolInfo(ProtocolInfo pinfo) |
void |
searchDevice(SearchParameter search)
Shorthand method for searching devices.
|
void |
searchService(SearchParameter search)
Searches for services.
|
void |
serviceChanged(ServiceReference serviceRef,
Service service)
Callback method, if service within the
ServiceReference has been changed. |
void |
serviceCreated(ServiceReference serviceRef,
Service service)
Callback method, if the service within the
ServiceReference was created. |
void |
serviceDisposed(ServiceReference serviceRef)
Callback method, if the service within the
ServiceReference was disposed for one of the
following reasons: |
void |
serviceFound(ServiceReference servRef,
SearchParameter search)
Deprecated.
|
void |
serviceFound(ServiceReference servRef,
SearchParameter search,
java.lang.String comManId)
This method is called each time a service matching the initial search criteria (as contained
within argument
search) has been found. |
void |
setAuthorizationManager(AuthorizationManager authorizationManager) |
void |
startedSearching(int searchIdentifier,
long duration,
java.lang.String description) |
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.
|
void |
unregisterHelloListening()
Unregisters the listeners for incoming hello messages for ALL
DiscoveryBinding found. |
void |
unregisterHelloListening(DiscoveryAutoBinding autoBinding)
Unregisters the listeners for incoming hello messages according to the given
DiscoveryAutoBinding. |
void |
unregisterHelloListening(DiscoveryBinding binding)
Unregisters the listeners for incoming hello messages according to the given
DiscoveryBinding. |
void |
unregisterHelloListening(SearchParameter search)
Unregisters the listeners for incoming hello messages according to the given
SearchParameter and ALL
DiscoveryBinding found. |
void |
unregisterHelloListening(SearchParameter search,
DiscoveryBinding binding)
Unregisters the listeners for incoming hello messages according to the given
SearchParameter and DiscoveryBinding. |
void |
unregisterServiceListening()
Unregisters service listening for this service client.
|
protected HashMap helloReceivers
protected HashMap discoveryBindingsUpForHelloListening
protected HashMap discoveryBindingsDownForHelloListening
protected HashMap discoveryAutoBindingsForHelloListening
public DefaultClient()
JMEDSFramework.isRunning(). Throws a
java.lang.RuntimeException if this is not the case.java.lang.RuntimeException - if the JMEDS framework is not running; i.e. it was either not started by means of JMEDSFramework.start(String[]) or has already been stopped via JMEDSFramework.stop() before
calling this constructorpublic boolean hasDiscoveryBindingsForHelloListening()
public boolean hasDiscoveryAutoBindingsForHelloListening()
public Iterator getDiscoveryBindingsForHelloListening()
public Iterator getDiscoveryAutoBindingsForHelloListening()
public boolean isInDiscoveryBindingsForHelloListening(DiscoveryBinding binding)
public boolean isInDiscoveryAutoBindingsForHelloListening(DiscoveryAutoBinding binding)
public HashMap getDefaultOutgoingDiscoveryInfos()
getDefaultOutgoingDiscoveryInfos in interface SearchCallbackpublic Set getDefaultOutgoingDiscoveryInfos(java.lang.String comManId)
getDefaultOutgoingDiscoveryInfos in interface SearchCallbackpublic Set getDefaultOutgoingDiscoveryInfosAutoBinding(java.lang.String comManId)
public HashSet getSupportedProtocolInfos(java.lang.String comManId)
getSupportedProtocolInfos in interface SearchCallbackpublic HashMap getSupportedProtocolInfos()
getSupportedProtocolInfos in interface SearchCallbackpublic void addSupportedProtocolInfo(ProtocolInfo pinfo)
public void removeSupportedProtocolInfo(ProtocolInfo pinfo)
public EventSink getEventSink(DataStructure bindings)
EventListenerbindings 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.getEventSink in interface EventListenerbindings - a data structure of CommunicationBinding instances to expose the created event sink overpublic EventSink generateEventSink(int configurationId)
CommunicationBinding instance. This CommunicationBinding instance defines a local
transport address, to which incoming notifications will be delivered.configurationId - Configuration id of the properties of the event sink to generatepublic void deviceBye(DeviceReference deviceRef)
DeviceListenerdeviceBye in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceCompletelyDiscovered(DeviceReference deviceRef)
DeviceListenerdeviceCompletelyDiscovered in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceChanged(DeviceReference deviceRef)
DeviceListenerdeviceChanged in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceRunning(DeviceReference deviceRef)
DeviceListenerdeviceRunning in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceBuiltUp(DeviceReference deviceRef, Device device)
DeviceListenerDeviceReference was created.deviceBuiltUp in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationdevice - the proxy device just built uppublic void deviceCommunicationErrorOrReset(DeviceReference deviceRef)
DeviceListenerDeviceReference has
failed or the reference was reset.deviceCommunicationErrorOrReset in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void serviceChanged(ServiceReference serviceRef, Service service)
ServiceListenerServiceReference has been changed.serviceChanged in interface ServiceListenerserviceRef - a reference to the service that caused the notificationservice - the service that has just been createdpublic void serviceCreated(ServiceReference serviceRef, Service service)
ServiceListenerServiceReference was created.serviceCreated in interface ServiceListenerserviceRef - a reference to the service that caused the notification qpram service the service that just have changedpublic void serviceDisposed(ServiceReference serviceRef)
ServiceListenerServiceReference was disposed for one of the
following reasons:
ServiceReference was removed or replaced by
a new service
Important: A device shutdown does not generally imply that all services of the device are also shutdown. Therefore a bye received by from a device does not trigger this method.
serviceDisposed in interface ServiceListenerserviceRef - a reference to the service that caused the notificationpublic void registerServiceListening()
ServiceListenerpublic void unregisterServiceListening()
ServiceListenerpublic DeviceReference getDeviceReference(EndpointReference deviceEpr, SecurityKey key, DiscoveryBinding binding, java.lang.String comManId)
Client instance will be used
as callback for device changes of the corresponding device.deviceEpr - endpoint reference of device to get device reference forSearchManager#getDeviceReference(EndpointReference, SecurityKey, DeviceListener, DiscoveryBinding)public DeviceReference getDeviceReference(EndpointReference deviceEpr, DiscoveryBinding binding)
deviceEpr - binding - public DeviceReference getDeviceReference(EndpointReference deviceEpr, DiscoveryBinding binding, java.lang.String comManId)
Client instance will be used
as callback for device changes of the corresponding device.deviceEpr - endpoint reference of device to get device reference forSearchManager#getDeviceReference(EndpointReference, SecurityKey, DeviceListener, DiscoveryBinding)public DeviceReference getDeviceReference(EndpointReference deviceEpr, SecurityKey key)
deviceEpr - binding - public DeviceReference getDeviceReference(EndpointReference deviceEpr, SecurityKey key, java.lang.String comManId)
Client instance will be used
as callback for device changes of the corresponding device.deviceEpr - endpoint reference of device to get device reference forSearchManager#getDeviceReference(EndpointReference, SecurityKey, DeviceListener, DiscoveryBinding)public DeviceReference getDeviceReference(EndpointReference deviceEpr)
deviceEpr - binding - public DeviceReference getDeviceReference(EndpointReference deviceEpr, java.lang.String comManId)
Client instance will be used
as callback for device changes of the corresponding device.deviceEpr - endpoint reference of device to get device reference forSearchManager#getDeviceReference(EndpointReference, SecurityKey, DeviceListener, DiscoveryBinding)public DeviceReference getDeviceReference(HelloData helloData, SecurityKey key)
Client instance will be
used as callback for device changes of the corresponding device.helloData - Hello data received from helloReceived(HelloData) callback method.SearchManager#getDeviceReference(HelloData, SecurityKey, DeviceListener)public DeviceReference getDeviceReference(HelloData helloData)
Client instance will be
used as callback for device changes of the corresponding device.helloData - Hello data received from helloReceived(HelloData) callback method.SearchManager#getDeviceReference(HelloData, SecurityKey, DeviceListener)public ServiceReference getServiceReference(EndpointReference serviceEpr, SecurityKey key)
deviceEpr - binding - public ServiceReference getServiceReference(EndpointReference serviceEpr, SecurityKey key, java.lang.String comManId)
serviceEpr - endpoint reference of service to get service reference forcomManId - ID of the communication manager to use when interacting with supplied endpoint referenceSearchManager.getServiceReference(EndpointReference, SecurityKey, String)public ServiceReference getServiceReference(EndpointReference serviceEpr)
deviceEpr - binding - public ServiceReference getServiceReference(EndpointReference serviceEpr, java.lang.String comManId)
serviceEpr - endpoint reference of service to get service reference forcomManId - ID of the communication manager to use when interacting with supplied endpoint referenceSearchManager.getServiceReference(EndpointReference, SecurityKey, String)public void searchDevice(SearchParameter search)
deviceFound(DeviceReference, SearchParameter) method.search - search criteriaSearchManager.searchDevice(SearchParameter, SearchCallback, DeviceListener)public void searchService(SearchParameter search)
serviceFound(ServiceReference, SearchParameter) method.search - search parameter to specify the search for device and serviceSearchManager#searchService(SearchParameter, SearchCallback)public void registerHelloListening()
This method will check every CommunicationManager registered inside the framework and registers all
discovery domains found with registerHelloListening(SearchParameter).
The client will be used as receiver for the incoming Hello messages.
public void registerHelloListening(SearchParameter search)
SearchParameter).
helloReceived(HelloData) is called to deliver the hello data.
This method will check every CommunicationManager registered inside the framework and registers all
discovery domains found with registerHelloListening(SearchParameter, HelloListener).
The client will be used as receiver for the incoming Hello messages.
search - containing the types and scopes.protected void registerHelloListening(SearchParameter search, HelloListener helloListener)
public void registerHelloListening(DiscoveryAutoBinding binding)
helloReceived(HelloData) is called to deliver the hello data. *
The client will be used as receiver for the incoming Hello messages.
autoBinding - the autoBinding for the listener.registerHelloListening(SearchParameter, DiscoveryAutoBinding, HelloListener, HelloReceiver)public void registerHelloListening(DiscoveryBinding binding)
helloReceived(HelloData) is called to deliver the hello data. *
The client will be used as receiver for the incoming Hello messages.
binding - the binding for the listener.registerHelloListening(SearchParameter, DiscoveryBinding, HelloListener, HelloReceiver)public void registerHelloListening(SearchParameter search, DiscoveryBinding binding)
SearchParameter).
helloReceived(HelloData) is called to deliver the hello data.
The client will be used as receiver for the incoming Hello messages.
search - containing the types and scopes.binding - the binding for the listener.registerHelloListening(SearchParameter, DiscoveryBinding, HelloListener, HelloReceiver)public void registerHelloListening(SearchParameter search, DiscoveryAutoBinding binding)
SearchParameter).
helloReceived(HelloData) is called to deliver the hello data.
The client will be used as receiver for the incoming Hello messages.
search - containing the types and scopes.binding - the binding for the listener.registerHelloListening(SearchParameter, DiscoveryBinding, HelloListener, HelloReceiver)public void registerHelloListening(SearchParameter search, DiscoveryBinding binding, HelloListener helloListener)
SearchParameter).
helloReceived(HelloData) is called to deliver the hello data.
search - containing the types and scopes.binding - the binding for the listener.helloListener - the listener to receive the hello data from matching hello messages.registerHelloListening(SearchParameter, DiscoveryBinding, HelloListener, HelloReceiver)protected void registerHelloListening(SearchParameter search, DiscoveryBinding binding, HelloListener helloListener, org.ws4d.java.client.DefaultClient.HelloReceiver helloReceiver)
protected void registerHelloListening(SearchParameter search, DiscoveryAutoBinding binding, HelloListener helloListener, org.ws4d.java.client.DefaultClient.HelloReceiver helloReceiver)
protected void registerHelloListening(SearchParameter search, DiscoveryBinding binding, HelloListener helloListener, org.ws4d.java.client.DefaultClient.HelloReceiver helloReceiver, boolean byAutoBinding)
public void unregisterHelloListening()
DiscoveryBinding found.public void unregisterHelloListening(DiscoveryAutoBinding autoBinding)
DiscoveryAutoBinding.autoBinding - the binding for the listener.public void unregisterHelloListening(DiscoveryBinding binding)
DiscoveryBinding.binding - the binding for the listener.public void unregisterHelloListening(SearchParameter search)
SearchParameter and ALL
DiscoveryBinding found.search - containing the types and scopes.public void unregisterHelloListening(SearchParameter search, DiscoveryBinding binding)
SearchParameter and DiscoveryBinding.search - containing the types and scopes.binding - the binding for the listener.public void helloReceived(HelloData helloData)
HelloListenerhelloReceived in interface HelloListenerhelloData - public final void deviceFound(DeviceReference devRef, SearchParameter search)
devRef - search - public void deviceFound(DeviceReference devRef, SearchParameter search, java.lang.String comManId)
SearchCallbacksearch) has been found.deviceFound in interface SearchCallbackdevRef - a reference to the matching devicesearch - the collection of criteria the search was initiated withpublic final void serviceFound(ServiceReference servRef, SearchParameter search)
servRef - search - public void serviceFound(ServiceReference servRef, SearchParameter search, java.lang.String comManId)
SearchCallbacksearch) has been found.serviceFound in interface SearchCallbackservRef - a reference to the matching servicesearch - the list of criteria the search was initiated withpublic ParameterValue eventReceived(ClientSubscription subscription, URI actionURI, ParameterValue parameterValue)
EventListener
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.
eventReceived in interface EventListenersubscription - this is the subscription because of which the event was receivedactionURI - URI of the subscribed actionparameterValue - parameter value of notification message containing the user datapublic void subscriptionEndReceived(ClientSubscription subscription, int subscriptionEndType)
EventListenersubscriptionEndReceived in interface EventListenersubscription - subscription ended.subscriptionEndType - type of the subscription endpublic void subscriptionTimeoutReceived(ClientSubscription subscription)
EventListenersubscriptionTimeoutReceived in interface EventListenersubscription - Ending subscription.public AuthorizationManager getAuthorizationManager()
EventListenergetAuthorizationManager in interface EventListenerpublic void setAuthorizationManager(AuthorizationManager authorizationManager)
public void announceNewCommunicationBindingAvailable1(Binding binding, boolean isDiscovery)
public void announceCommunicationBindingDestroyed1(Binding binding, boolean isDiscovery)
public void announceNewDiscoveryBindingAvailable1(DiscoveryBinding binding, DiscoveryAutoBinding dab)
public void announceDiscoveryBindingDestroyed1(DiscoveryBinding binding, DiscoveryAutoBinding dab)
public void announceDiscoveryBindingUp1(DiscoveryBinding binding)
public void announceDiscoveryBindingDown1(DiscoveryBinding binding)
public void announceCommunicationBindingUp1(CommunicationBinding binding)
public void announceCommunicationBindingDown1(CommunicationBinding binding)
public void announceNewInterfaceAvailable1(java.lang.Object iface)
public void announceNewOutgoingDiscoveryInfoAvailable1(OutgoingDiscoveryInfo outgoingDiscoveryInfo)
public void announceOutgoingDiscoveryInfoDestroyed1(OutgoingDiscoveryInfo outgoingDiscoveryInfo)
public CommunicationStructureListener getCommunicationStructureListener()
public void finishedSearching(int searchIdentifier,
boolean entityFound,
SearchParameter search)
SearchCallbackfinishedSearching in interface SearchCallbackentityFound - is true when a device or service that matches he search criteria has been found; false otherwisepublic void startedSearching(int searchIdentifier,
long duration,
java.lang.String description)
startedSearching in interface SearchCallbackpublic void noDevicesFound(SearchParameter search)
noDevicesFound in interface SearchCallback