|
||||||||||
| 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 UpnpServiceConfigurationDatagramProcessor.public SOAPActionProcessor getSoapActionProcessor()
getSoapActionProcessor in interface UpnpServiceConfigurationSOAPActionProcessor.public GENAEventProcessor getGenaEventProcessor()
getGenaEventProcessor in interface UpnpServiceConfigurationGENAEventProcessor.public StreamClient createStreamClient()
createStreamClient in interface UpnpServiceConfigurationStreamClient interface.public MulticastReceiver createMulticastReceiver(NetworkAddressFactory networkAddressFactory)
createMulticastReceiver in interface UpnpServiceConfigurationnetworkAddressFactory - The configured NetworkAddressFactory.
MulticastReceiver interface.public DatagramIO createDatagramIO(NetworkAddressFactory networkAddressFactory)
createDatagramIO in interface UpnpServiceConfigurationnetworkAddressFactory - The configured NetworkAddressFactory.
DatagramIO interface.public StreamServer createStreamServer(NetworkAddressFactory networkAddressFactory)
createStreamServer in interface UpnpServiceConfigurationnetworkAddressFactory - The configured NetworkAddressFactory.
StreamServer interface.public Executor getMulticastReceiverExecutor()
getMulticastReceiverExecutor in interface UpnpServiceConfigurationpublic Executor getDatagramIOExecutor()
getDatagramIOExecutor in interface UpnpServiceConfigurationpublic Executor getStreamServerExecutor()
getStreamServerExecutor in interface UpnpServiceConfigurationpublic DeviceDescriptorBinder getDeviceDescriptorBinderUDA10()
getDeviceDescriptorBinderUDA10 in interface UpnpServiceConfigurationDeviceDescriptorBinder for the UPnP 1.0 Device Architecture..public ServiceDescriptorBinder getServiceDescriptorBinderUDA10()
getServiceDescriptorBinderUDA10 in interface UpnpServiceConfigurationServiceDescriptorBinder 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 UpnpServiceConfigurationnull return value will disable discovery!
An empty array means all services will be discovered.public int getRegistryMaintenanceIntervalMillis()
getRegistryMaintenanceIntervalMillis in interface UpnpServiceConfigurationpublic Executor getAsyncProtocolExecutor()
getAsyncProtocolExecutor in interface UpnpServiceConfigurationpublic Executor getSyncProtocolExecutor()
getSyncProtocolExecutor in interface UpnpServiceConfigurationpublic Namespace getNamespace()
getNamespace in interface UpnpServiceConfigurationNamespace for this UPnP stack.public Executor getRegistryMaintainerExecutor()
getRegistryMaintainerExecutor in interface UpnpServiceConfigurationpublic Executor getRegistryListenerExecutor()
getRegistryListenerExecutor in interface UpnpServiceConfigurationpublic NetworkAddressFactory createNetworkAddressFactory()
createNetworkAddressFactory in interface UpnpServiceConfigurationNetworkAddressFactory interface.public void shutdown()
UpnpServiceConfigurationUpnpService on shutdown, useful to e.g. shutdown thread pools.
shutdown in interface UpnpServiceConfigurationprotected 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 | |||||||||