|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teleal.cling.DefaultUpnpServiceConfiguration
public class DefaultUpnpServiceConfiguration
Default configuration data of a typical UPnP stack.
This configuration utilizes the default network transport implementation found in
org.teleal.cling.transport.impl
.
This configuration utilizes the DOM default descriptor binders found in
org.teleal.cling.binding.xml
.
The thread Executor
is a ThreadPoolExecutor
with the following
properties:
A warning message will be logged when all threads of the pool have been exhausted and executions have to be dropped.
The default Namespace
is configured without any
base path or prefix.
Constructor Summary | |
---|---|
|
DefaultUpnpServiceConfiguration()
Defaults to port '0', ephemeral. |
protected |
DefaultUpnpServiceConfiguration(boolean checkRuntime)
|
|
DefaultUpnpServiceConfiguration(int streamListenPort)
|
protected |
DefaultUpnpServiceConfiguration(int streamListenPort,
boolean checkRuntime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUpnpServiceConfiguration()
public DefaultUpnpServiceConfiguration(int streamListenPort)
protected DefaultUpnpServiceConfiguration(boolean checkRuntime)
protected DefaultUpnpServiceConfiguration(int streamListenPort, boolean checkRuntime)
Method Detail |
---|
public DatagramProcessor getDatagramProcessor()
getDatagramProcessor
in interface UpnpServiceConfiguration
DatagramProcessor
.public SOAPActionProcessor getSoapActionProcessor()
getSoapActionProcessor
in interface UpnpServiceConfiguration
SOAPActionProcessor
.public GENAEventProcessor getGenaEventProcessor()
getGenaEventProcessor
in interface UpnpServiceConfiguration
GENAEventProcessor
.public StreamClient createStreamClient()
createStreamClient
in interface UpnpServiceConfiguration
StreamClient
interface.public MulticastReceiver createMulticastReceiver(NetworkAddressFactory networkAddressFactory)
createMulticastReceiver
in interface UpnpServiceConfiguration
networkAddressFactory
- The configured NetworkAddressFactory
.
MulticastReceiver
interface.public DatagramIO createDatagramIO(NetworkAddressFactory networkAddressFactory)
createDatagramIO
in interface UpnpServiceConfiguration
networkAddressFactory
- The configured NetworkAddressFactory
.
DatagramIO
interface.public StreamServer createStreamServer(NetworkAddressFactory networkAddressFactory)
createStreamServer
in interface UpnpServiceConfiguration
networkAddressFactory
- The configured NetworkAddressFactory
.
StreamServer
interface.public Executor getMulticastReceiverExecutor()
getMulticastReceiverExecutor
in interface UpnpServiceConfiguration
public Executor getDatagramIOExecutor()
getDatagramIOExecutor
in interface UpnpServiceConfiguration
public Executor getStreamServerExecutor()
getStreamServerExecutor
in interface UpnpServiceConfiguration
public DeviceDescriptorBinder getDeviceDescriptorBinderUDA10()
getDeviceDescriptorBinderUDA10
in interface UpnpServiceConfiguration
DeviceDescriptorBinder
for the UPnP 1.0 Device Architecture..public ServiceDescriptorBinder getServiceDescriptorBinderUDA10()
getServiceDescriptorBinderUDA10
in interface UpnpServiceConfiguration
ServiceDescriptorBinder
for the UPnP 1.0 Device Architecture..public ServiceType[] getExclusiveServiceTypes()
UpnpServiceConfiguration
Return null
to completely disable remote device and service discovery.
All incoming notifications and search responses will then be dropped immediately.
This is mostly useful in applications that only provide services with no (remote)
control point functionality.
Note that a discovered service type with version 2 or 3 will match an exclusive service type with version 1. UPnP services are required to be backwards compatible, version 2 is a superset of version 1, and version 3 is a superset of version 2, etc.
getExclusiveServiceTypes
in interface UpnpServiceConfiguration
null
return value will disable discovery!
An empty array means all services will be discovered.public int getRegistryMaintenanceIntervalMillis()
getRegistryMaintenanceIntervalMillis
in interface UpnpServiceConfiguration
public Executor getAsyncProtocolExecutor()
getAsyncProtocolExecutor
in interface UpnpServiceConfiguration
public Executor getSyncProtocolExecutor()
getSyncProtocolExecutor
in interface UpnpServiceConfiguration
public Namespace getNamespace()
getNamespace
in interface UpnpServiceConfiguration
Namespace
for this UPnP stack.public Executor getRegistryMaintainerExecutor()
getRegistryMaintainerExecutor
in interface UpnpServiceConfiguration
public Executor getRegistryListenerExecutor()
getRegistryListenerExecutor
in interface UpnpServiceConfiguration
public NetworkAddressFactory createNetworkAddressFactory()
createNetworkAddressFactory
in interface UpnpServiceConfiguration
NetworkAddressFactory
interface.public void shutdown()
UpnpServiceConfiguration
UpnpService
on shutdown, useful to e.g. shutdown thread pools.
shutdown
in interface UpnpServiceConfiguration
protected NetworkAddressFactory createNetworkAddressFactory(int streamListenPort)
protected DatagramProcessor createDatagramProcessor()
protected SOAPActionProcessor createSOAPActionProcessor()
protected GENAEventProcessor createGENAEventProcessor()
protected DeviceDescriptorBinder createDeviceDescriptorBinderUDA10()
protected ServiceDescriptorBinder createServiceDescriptorBinderUDA10()
protected Namespace createNamespace()
protected Executor getDefaultExecutor()
protected Executor createDefaultExecutor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |