@Alternative public class UpnpServiceImpl extends Object implements UpnpService
UpnpService
, starts immediately on construction.
If no UpnpServiceConfiguration
is provided it will automatically
instantiate DefaultUpnpServiceConfiguration
. This configuration does not
work on Android! Use the AndroidUpnpService
application component instead.
Override the various create...() methods to customize instantiation of protocol factory, router, etc.
UpnpService.Shutdown, UpnpService.Start
Modifier and Type | Field and Description |
---|---|
protected UpnpServiceConfiguration |
configuration |
protected ControlPoint |
controlPoint |
protected ProtocolFactory |
protocolFactory |
protected Registry |
registry |
protected Router |
router |
Constructor and Description |
---|
UpnpServiceImpl() |
UpnpServiceImpl(RegistryListener... registryListeners) |
UpnpServiceImpl(UpnpServiceConfiguration configuration,
RegistryListener... registryListeners) |
Modifier and Type | Method and Description |
---|---|
protected ControlPoint |
createControlPoint(ProtocolFactory protocolFactory,
Registry registry) |
protected ProtocolFactory |
createProtocolFactory() |
protected Registry |
createRegistry(ProtocolFactory protocolFactory) |
protected Router |
createRouter(ProtocolFactory protocolFactory,
Registry registry) |
UpnpServiceConfiguration |
getConfiguration() |
ControlPoint |
getControlPoint() |
ProtocolFactory |
getProtocolFactory() |
Registry |
getRegistry() |
Router |
getRouter() |
void |
shutdown()
Stopping the UPnP stack.
|
protected void |
shutdown(boolean separateThread) |
protected void |
shutdownConfiguration() |
protected void |
shutdownRegistry() |
protected void |
shutdownRouter() |
protected final UpnpServiceConfiguration configuration
protected final ControlPoint controlPoint
protected final ProtocolFactory protocolFactory
protected final Registry registry
protected final Router router
public UpnpServiceImpl()
public UpnpServiceImpl(RegistryListener... registryListeners)
public UpnpServiceImpl(UpnpServiceConfiguration configuration, RegistryListener... registryListeners)
protected ProtocolFactory createProtocolFactory()
protected Registry createRegistry(ProtocolFactory protocolFactory)
protected Router createRouter(ProtocolFactory protocolFactory, Registry registry)
protected ControlPoint createControlPoint(ProtocolFactory protocolFactory, Registry registry)
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 Router 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
protected void shutdown(boolean separateThread)
protected void shutdownRegistry()
protected void shutdownRouter()
protected void shutdownConfiguration()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.