org.teleal.cling
Class UpnpServiceImpl
java.lang.Object
org.teleal.cling.UpnpServiceImpl
- All Implemented Interfaces:
- UpnpService
public class UpnpServiceImpl
- extends Object
- implements UpnpService
Default implementation of 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.
- Author:
- Christian Bauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configuration
protected final UpnpServiceConfiguration configuration
controlPoint
protected final ControlPoint controlPoint
protocolFactory
protected final ProtocolFactory protocolFactory
registry
protected final Registry registry
router
protected final Router router
UpnpServiceImpl
public UpnpServiceImpl()
UpnpServiceImpl
public UpnpServiceImpl(RegistryListener... registryListeners)
UpnpServiceImpl
public UpnpServiceImpl(UpnpServiceConfiguration configuration,
RegistryListener... registryListeners)
createProtocolFactory
protected ProtocolFactory createProtocolFactory()
createRegistry
protected Registry createRegistry(ProtocolFactory protocolFactory)
createRouter
protected Router createRouter(ProtocolFactory protocolFactory,
Registry registry)
createControlPoint
protected ControlPoint createControlPoint(ProtocolFactory protocolFactory,
Registry registry)
getConfiguration
public UpnpServiceConfiguration getConfiguration()
- Specified by:
getConfiguration
in interface UpnpService
getControlPoint
public ControlPoint getControlPoint()
- Specified by:
getControlPoint
in interface UpnpService
getProtocolFactory
public ProtocolFactory getProtocolFactory()
- Specified by:
getProtocolFactory
in interface UpnpService
getRegistry
public Registry getRegistry()
- Specified by:
getRegistry
in interface UpnpService
getRouter
public Router getRouter()
- Specified by:
getRouter
in interface UpnpService
shutdown
public void shutdown()
- Description copied from interface:
UpnpService
- Stopping the UPnP stack.
Clients are required to stop the UPnP stack properly. Notifications for
disappearing devices will be multicasted, existing event subscriptions canceled.
- Specified by:
shutdown
in interface UpnpService
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.