@Alternative public class MockUpnpService extends Object implements UpnpService
It uses the MockUpnpService.MockProtocolFactory
.
Modifier and Type | Class and Description |
---|---|
static class |
MockUpnpService.MockProtocolFactory
This factory customizes several protocols.
|
UpnpService.Shutdown, UpnpService.Start
Modifier and Type | Field and Description |
---|---|
protected UpnpServiceConfiguration |
configuration |
protected ControlPoint |
controlPoint |
protected NetworkAddressFactory |
networkAddressFactory |
protected ProtocolFactory |
protocolFactory |
protected Registry |
registry |
protected MockRouter |
router |
Constructor and Description |
---|
MockUpnpService()
Single-thread of execution for the whole UPnP stack, no ALIVE messages or registry maintenance.
|
MockUpnpService(boolean sendsAlive,
boolean maintainsRegistry)
Single-thread of execution for the whole UPnP stack, except one background registry maintenance thread.
|
MockUpnpService(boolean sendsAlive,
boolean maintainsRegistry,
boolean multiThreaded) |
MockUpnpService(boolean sendsAlive,
MockUpnpServiceConfiguration configuration) |
MockUpnpService(MockUpnpServiceConfiguration configuration)
No ALIVE messages.
|
Modifier and Type | Method and Description |
---|---|
protected ProtocolFactory |
createProtocolFactory(UpnpService service,
boolean sendsAlive) |
protected MockRouter |
createRouter() |
UpnpServiceConfiguration |
getConfiguration() |
ControlPoint |
getControlPoint() |
ProtocolFactory |
getProtocolFactory() |
Registry |
getRegistry() |
MockRouter |
getRouter() |
void |
shutdown()
Stopping the UPnP stack.
|
protected final UpnpServiceConfiguration configuration
protected final ControlPoint controlPoint
protected final ProtocolFactory protocolFactory
protected final Registry registry
protected final MockRouter router
protected final NetworkAddressFactory networkAddressFactory
public MockUpnpService()
public MockUpnpService(MockUpnpServiceConfiguration configuration)
public MockUpnpService(boolean sendsAlive, boolean maintainsRegistry)
public MockUpnpService(boolean sendsAlive, boolean maintainsRegistry, boolean multiThreaded)
public MockUpnpService(boolean sendsAlive, MockUpnpServiceConfiguration configuration)
protected ProtocolFactory createProtocolFactory(UpnpService service, boolean sendsAlive)
protected MockRouter createRouter()
public UpnpServiceConfiguration getConfiguration()
getConfiguration
in interface UpnpService
public ControlPoint getControlPoint()
getControlPoint
in interface UpnpService
public ProtocolFactory getProtocolFactory()
getProtocolFactory
in interface UpnpService
public Registry getRegistry()
getRegistry
in interface UpnpService
public MockRouter getRouter()
getRouter
in interface UpnpService
public void shutdown()
UpnpService
Clients are required to stop the UPnP stack properly. Notifications for disappearing devices will be multicast'ed, existing event subscriptions cancelled.
shutdown
in interface UpnpService
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.