org.teleal.cling.mock
Class MockUpnpService.MockProtocolFactory
java.lang.Object
org.teleal.cling.protocol.ProtocolFactoryImpl
org.teleal.cling.mock.MockUpnpService.MockProtocolFactory
- All Implemented Interfaces:
- ProtocolFactory
- Enclosing class:
- MockUpnpService
public static class MockUpnpService.MockProtocolFactory
- extends ProtocolFactoryImpl
This factory customizes several protocols.
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockUpnpService.MockProtocolFactory
public MockUpnpService.MockProtocolFactory(UpnpService upnpService,
boolean sendsAlive)
createSendingNotificationAlive
public SendingNotificationAlive createSendingNotificationAlive(LocalDevice localDevice)
- Description copied from interface:
ProtocolFactory
- Called by the
Registry
, creates a protocol for announcing local devices.
- Specified by:
createSendingNotificationAlive
in interface ProtocolFactory
- Overrides:
createSendingNotificationAlive
in class ProtocolFactoryImpl
createSendingSearch
public SendingSearch createSendingSearch(UpnpHeader searchTarget,
int mxSeconds)
- Description copied from interface:
ProtocolFactory
- Called by the
ControlPoint
, creates a protocol for a multicast search.
- Specified by:
createSendingSearch
in interface ProtocolFactory
- Overrides:
createSendingSearch
in class ProtocolFactoryImpl
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.