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.
|
void |
startup() |
protected UpnpServiceConfiguration configuration
protected ControlPoint controlPoint
protected ProtocolFactory protocolFactory
protected Registry registry
protected MockRouter router
protected 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 UpnpServicepublic ControlPoint getControlPoint()
getControlPoint in interface UpnpServicepublic ProtocolFactory getProtocolFactory()
getProtocolFactory in interface UpnpServicepublic Registry getRegistry()
getRegistry in interface UpnpServicepublic MockRouter getRouter()
getRouter in interface UpnpServicepublic void shutdown()
UpnpServiceClients are required to stop the UPnP stack properly. Notifications for disappearing devices will be multicast'ed, existing event subscriptions cancelled.
shutdown in interface UpnpServicepublic void startup()
startup in interface UpnpServiceCopyright © 2023 jUPnP.org. All rights reserved.