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, isSupportedServiceAdvertisementpublic MockProtocolFactory(UpnpService upnpService, boolean sendsAlive)
public SendingNotificationAlive createSendingNotificationAlive(LocalDevice localDevice)
ProtocolFactoryRegistry, creates a protocol for announcing local devices.createSendingNotificationAlive in interface ProtocolFactorycreateSendingNotificationAlive in class ProtocolFactoryImplpublic SendingSearch createSendingSearch(UpnpHeader searchTarget, int mxSeconds)
ProtocolFactoryControlPoint, creates a protocol for a multicast search.createSendingSearch in interface ProtocolFactorycreateSendingSearch in class ProtocolFactoryImplCopyright © 2023 jUPnP.org. All rights reserved.