Package org.jupnp

Klasse UpnpServiceImpl

java.lang.Object
org.jupnp.UpnpServiceImpl
Alle implementierten Schnittstellen:
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.

Autor:
Christian Bauer, Kai Kreuzer - OSGiified the service
  • Felddetails

  • Konstruktordetails

    • UpnpServiceImpl

      public UpnpServiceImpl()
    • UpnpServiceImpl

      public UpnpServiceImpl(UpnpServiceConfiguration configuration)
  • Methodendetails

    • activate

      public void activate(UpnpServiceImpl.Config config)
    • deactivate

      public void deactivate()
    • setUpnpServiceConfiguration

      public void setUpnpServiceConfiguration(UpnpServiceConfiguration configuration)
    • unsetUpnpServiceConfiguration

      public void unsetUpnpServiceConfiguration(UpnpServiceConfiguration configuration)
    • setHttpService

      public void setHttpService(org.osgi.service.http.HttpService httpService)
    • unsetHttpService

      public void unsetHttpService(org.osgi.service.http.HttpService httpService)
    • 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()
      Angegeben von:
      getConfiguration in Schnittstelle UpnpService
    • getControlPoint

      public ControlPoint getControlPoint()
      Angegeben von:
      getControlPoint in Schnittstelle UpnpService
    • getProtocolFactory

      public ProtocolFactory getProtocolFactory()
      Angegeben von:
      getProtocolFactory in Schnittstelle UpnpService
    • getRegistry

      public Registry getRegistry()
      Angegeben von:
      getRegistry in Schnittstelle UpnpService
    • getRouter

      public Router getRouter()
      Angegeben von:
      getRouter in Schnittstelle UpnpService
    • shutdown

      public void shutdown()
      Beschreibung aus Schnittstelle kopiert: UpnpService
      Stopping the UPnP stack.

      Clients are required to stop the UPnP stack properly. Notifications for disappearing devices will be multicast'ed, existing event subscriptions cancelled.

      Angegeben von:
      shutdown in Schnittstelle UpnpService
    • shutdown

      protected void shutdown(boolean separateThread)
    • shutdownRegistry

      protected void shutdownRegistry()
    • shutdownRouter

      protected void shutdownRouter()
    • shutdownConfiguration

      protected void shutdownConfiguration()
    • startup

      public void startup()
      Angegeben von:
      startup in Schnittstelle UpnpService