org.teleal.cling.mock
Class MockUpnpService.MockProtocolFactory

java.lang.Object
  extended by org.teleal.cling.protocol.ProtocolFactoryImpl
      extended by 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.


Field Summary
 
Fields inherited from class org.teleal.cling.protocol.ProtocolFactoryImpl
upnpService
 
Constructor Summary
MockUpnpService.MockProtocolFactory(UpnpService upnpService, boolean sendsAlive)
           
 
Method Summary
 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.
 
Methods inherited from class org.teleal.cling.protocol.ProtocolFactoryImpl
createReceivingAsync, createReceivingSync, createSendingAction, createSendingEvent, createSendingNotificationByebye, createSendingRenewal, createSendingSubscribe, createSendingUnsubscribe, getUpnpService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockUpnpService.MockProtocolFactory

public MockUpnpService.MockProtocolFactory(UpnpService upnpService,
                                           boolean sendsAlive)
Method Detail

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.