public static class MockUpnpService.MockProtocolFactory extends ProtocolFactoryImpl
The SendingNotificationAlive
protocol
only sends messages if this feature is enabled when instantiating the factory.
The SendingSearch
protocol doesn't wait between
sending search message bulks, this speeds up testing.
upnpService
Constructor and Description |
---|
MockProtocolFactory(UpnpService upnpService,
boolean sendsAlive) |
Modifier and Type | Method and Description |
---|---|
SendingNotificationAlive |
createSendingNotificationAlive(LocalDevice localDevice)
Called by the
Registry , creates a protocol for announcing local devices. |
SendingSearch |
createSendingSearch(UpnpHeader searchTarget,
int mxSeconds)
Called by the
ControlPoint , creates a protocol for a multicast search. |
createReceivingAction, createReceivingAsync, createReceivingEvent, createReceivingNotification, createReceivingRetrieval, createReceivingSearch, createReceivingSearchResponse, createReceivingSubscribe, createReceivingSync, createReceivingUnsubscribe, createSendingAction, createSendingEvent, createSendingNotificationByebye, createSendingRenewal, createSendingSubscribe, createSendingUnsubscribe, getUpnpService, isByeBye, isSupportedServiceAdvertisement
public MockProtocolFactory(UpnpService upnpService, boolean sendsAlive)
public SendingNotificationAlive createSendingNotificationAlive(LocalDevice localDevice)
ProtocolFactory
Registry
, creates a protocol for announcing local devices.createSendingNotificationAlive
in interface ProtocolFactory
createSendingNotificationAlive
in class ProtocolFactoryImpl
public SendingSearch createSendingSearch(UpnpHeader searchTarget, int mxSeconds)
ProtocolFactory
ControlPoint
, creates a protocol for a multicast search.createSendingSearch
in interface ProtocolFactory
createSendingSearch
in class ProtocolFactoryImpl
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.