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 boolean |
isConfigured |
protected Boolean |
isRunning |
protected ProtocolFactory |
protocolFactory |
protected Registry |
registry |
protected Router |
router |
protected ScheduledExecutorService |
scheduledExecutorService |
protected ScheduledFuture<?> |
scheduledFuture |
| Constructor and Description |
|---|
UpnpServiceImpl() |
UpnpServiceImpl(UpnpServiceConfiguration configuration) |
protected boolean isConfigured
protected Boolean isRunning
protected UpnpServiceConfiguration configuration
protected ProtocolFactory protocolFactory
protected Registry registry
protected ControlPoint controlPoint
protected Router router
protected ScheduledExecutorService scheduledExecutorService
protected volatile ScheduledFuture<?> scheduledFuture
public UpnpServiceImpl()
public UpnpServiceImpl(UpnpServiceConfiguration configuration)
protected void setOSGiUpnpServiceConfiguration(OSGiUpnpServiceConfiguration configuration)
protected void unsetOSGiUpnpServiceConfiguration(OSGiUpnpServiceConfiguration configuration)
protected void setHttpService(org.osgi.service.http.HttpService httpService)
protected void unsetHttpService(org.osgi.service.http.HttpService httpService)
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 UpnpServicepublic ControlPoint getControlPoint()
getControlPoint in interface UpnpServicepublic ProtocolFactory getProtocolFactory()
getProtocolFactory in interface UpnpServicepublic Registry getRegistry()
getRegistry in interface UpnpServicepublic Router 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 UpnpServiceprotected void shutdown(boolean separateThread)
protected void shutdownRegistry()
protected void shutdownRouter()
protected void shutdownConfiguration()
public void startup()
startup in interface UpnpServiceprotected void deactivate()
Copyright © 2023 jUPnP.org. All rights reserved.