Klasse OSGiUpnpServiceConfiguration

java.lang.Object
org.jupnp.OSGiUpnpServiceConfiguration
Alle implementierten Schnittstellen:
UpnpServiceConfiguration

public class OSGiUpnpServiceConfiguration extends Object implements UpnpServiceConfiguration
Configuration data of a typical UPnP stack on OSGi.

This configuration utilizes the default network transport implementation found in org.jupnp.transport.impl.

This configuration utilizes the SAX default descriptor binders found in org.jupnp.binding.xml.

The thread Executor is an Executors.newCachedThreadPool() with a custom QueueingThreadFactory.

The default Namespace is configured without any base path or prefix.

This component is enabled by the OSGiUpnpServiceConfigurationEnabler based on the autoEnable configuration value. Set autoEnable to false when using a custom UpnpServiceConfiguration component.
Autor:
Christian Bauer, Kai Kreuzer - introduced bounded thread pool and http service streaming server, Victor Toni - consolidated transport abstraction into one interface, Wouter Born - conditionally enable component based on autoEnable configuration value, Laurent Garnier - added OSGi dependency to HttpService and removed its release, Laurent Garnier - added parameter "interfaces" to set a list of network interfaces to consider
  • Felddetails

    • OSGI_SERVICE_HTTP_PORT

      protected static final String OSGI_SERVICE_HTTP_PORT
      Siehe auch:
    • threadPoolSize

      protected int threadPoolSize
    • asyncThreadPoolSize

      protected int asyncThreadPoolSize
    • remoteThreadPoolSize

      protected int remoteThreadPoolSize
    • interfaces

      protected String interfaces
    • multicastResponsePort

      protected int multicastResponsePort
    • httpProxyPort

      protected int httpProxyPort
    • streamListenPort

      protected int streamListenPort
    • asyncThreadPool

      protected boolean asyncThreadPool
    • mainThreadPool

      protected boolean mainThreadPool
    • remoteThreadPool

      protected boolean remoteThreadPool
    • callbackURI

      protected Namespace callbackURI
    • mainExecutorService

      protected ExecutorService mainExecutorService
    • asyncExecutorService

      protected ExecutorService asyncExecutorService
    • remoteExecutorService

      protected ExecutorService remoteExecutorService
    • datagramProcessor

      protected DatagramProcessor datagramProcessor
    • soapActionProcessor

      protected SOAPActionProcessor soapActionProcessor
    • genaEventProcessor

      protected GENAEventProcessor genaEventProcessor
    • deviceDescriptorBinderUDA10

      protected DeviceDescriptorBinder deviceDescriptorBinderUDA10
    • serviceDescriptorBinderUDA10

      protected ServiceDescriptorBinder serviceDescriptorBinderUDA10
    • namespace

      protected Namespace namespace
    • context

      protected org.osgi.framework.BundleContext context
    • transportConfiguration

      protected TransportConfiguration transportConfiguration
    • timeoutSeconds

      protected Integer timeoutSeconds
    • retryIterations

      protected Integer retryIterations
    • retryAfterSeconds

      protected Integer retryAfterSeconds
    • httpService

      protected org.osgi.service.http.HttpService httpService
  • Konstruktordetails

    • OSGiUpnpServiceConfiguration

      public OSGiUpnpServiceConfiguration()
      Defaults to port '0', ephemeral.
    • OSGiUpnpServiceConfiguration

      public OSGiUpnpServiceConfiguration(int streamListenPort)
    • OSGiUpnpServiceConfiguration

      public OSGiUpnpServiceConfiguration(int streamListenPort, int multicastResponsePort)
    • OSGiUpnpServiceConfiguration

      protected OSGiUpnpServiceConfiguration(boolean checkRuntime)
    • OSGiUpnpServiceConfiguration

      protected OSGiUpnpServiceConfiguration(int streamListenPort, int multicastResponsePort, boolean checkRuntime)
  • Methodendetails