public class AndroidUpnpServiceConfiguration extends DefaultUpnpServiceConfiguration
This configuration utilizes the Jetty transport implementation
found in org.fourthline.cling.transport.impl.jetty
for TCP/HTTP networking, as
client and server. The servlet context path for UPnP is set to /upnp
.
The kxml2 implementation of org.xmlpull
is available on Android, therefore
this configuration uses RecoveringUDA10DeviceDescriptorBinderImpl
,
RecoveringSOAPActionProcessorImpl
, and RecoveringGENAEventProcessorImpl
.
This configuration utilizes UDA10ServiceDescriptorBinderSAXImpl
, the system property
org.xml.sax.driver
is set to org.xmlpull.v1.sax2.Driver
.
To preserve battery, the Registry
will only
be maintained every 3 seconds.
DefaultUpnpServiceConfiguration.ClingExecutor, DefaultUpnpServiceConfiguration.ClingThreadFactory
Constructor and Description |
---|
AndroidUpnpServiceConfiguration() |
AndroidUpnpServiceConfiguration(int streamListenPort) |
Modifier and Type | Method and Description |
---|---|
protected DeviceDescriptorBinder |
createDeviceDescriptorBinderUDA10() |
protected GENAEventProcessor |
createGENAEventProcessor() |
protected Namespace |
createNamespace() |
protected NetworkAddressFactory |
createNetworkAddressFactory(int streamListenPort) |
protected ServiceDescriptorBinder |
createServiceDescriptorBinderUDA10() |
protected SOAPActionProcessor |
createSOAPActionProcessor() |
StreamClient |
createStreamClient() |
StreamServer |
createStreamServer(NetworkAddressFactory networkAddressFactory) |
int |
getRegistryMaintenanceIntervalMillis() |
createDatagramIO, createDatagramProcessor, createDefaultExecutorService, createMulticastReceiver, createNetworkAddressFactory, getAliveIntervalMillis, getAsyncProtocolExecutor, getDatagramIOExecutor, getDatagramProcessor, getDefaultExecutorService, getDescriptorRetrievalHeaders, getDeviceDescriptorBinderUDA10, getEventSubscriptionHeaders, getExclusiveServiceTypes, getGenaEventProcessor, getMulticastReceiverExecutor, getNamespace, getRegistryListenerExecutor, getRegistryMaintainerExecutor, getRemoteDeviceMaxAgeSeconds, getServiceDescriptorBinderUDA10, getSoapActionProcessor, getStreamServerExecutorService, getSyncProtocolExecutorService, isReceivedSubscriptionTimeoutIgnored, shutdown
public AndroidUpnpServiceConfiguration()
public AndroidUpnpServiceConfiguration(int streamListenPort)
protected NetworkAddressFactory createNetworkAddressFactory(int streamListenPort)
createNetworkAddressFactory
in class DefaultUpnpServiceConfiguration
protected Namespace createNamespace()
createNamespace
in class DefaultUpnpServiceConfiguration
public StreamClient createStreamClient()
createStreamClient
in interface UpnpServiceConfiguration
createStreamClient
in class DefaultUpnpServiceConfiguration
StreamClient
interface.public StreamServer createStreamServer(NetworkAddressFactory networkAddressFactory)
createStreamServer
in interface UpnpServiceConfiguration
createStreamServer
in class DefaultUpnpServiceConfiguration
networkAddressFactory
- The configured NetworkAddressFactory
.StreamServer
interface.protected DeviceDescriptorBinder createDeviceDescriptorBinderUDA10()
createDeviceDescriptorBinderUDA10
in class DefaultUpnpServiceConfiguration
protected ServiceDescriptorBinder createServiceDescriptorBinderUDA10()
createServiceDescriptorBinderUDA10
in class DefaultUpnpServiceConfiguration
protected SOAPActionProcessor createSOAPActionProcessor()
createSOAPActionProcessor
in class DefaultUpnpServiceConfiguration
protected GENAEventProcessor createGENAEventProcessor()
createGENAEventProcessor
in class DefaultUpnpServiceConfiguration
public int getRegistryMaintenanceIntervalMillis()
getRegistryMaintenanceIntervalMillis
in interface UpnpServiceConfiguration
getRegistryMaintenanceIntervalMillis
in class DefaultUpnpServiceConfiguration
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.