org.fourthline.cling.transport.impl
Class AsyncServletStreamServerConfigurationImpl
java.lang.Object
org.fourthline.cling.transport.impl.AsyncServletStreamServerConfigurationImpl
- All Implemented Interfaces:
- StreamServerConfiguration
public class AsyncServletStreamServerConfigurationImpl
- extends Object
- implements StreamServerConfiguration
Settings for the async Servlet 3.0 implementation.
If you are trying to integrate Cling with an existing/running servlet
container, implement ServletContainerAdapter
.
- Author:
- Christian Bauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servletContainerAdapter
protected ServletContainerAdapter servletContainerAdapter
listenPort
protected int listenPort
asyncTimeoutMillis
protected int asyncTimeoutMillis
AsyncServletStreamServerConfigurationImpl
public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter)
- Defaults to port '0', ephemeral.
AsyncServletStreamServerConfigurationImpl
public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter,
int listenPort)
AsyncServletStreamServerConfigurationImpl
public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter,
int listenPort,
int asyncTimeoutMillis)
getListenPort
public int getListenPort()
- Specified by:
getListenPort
in interface StreamServerConfiguration
- Returns:
- Defaults to
0
.
setListenPort
public void setListenPort(int listenPort)
getAsyncTimeoutMillis
public int getAsyncTimeoutMillis()
- The time in milliseconds this server wait for the
Router
to execute a UpnpStream
.
- Returns:
- The default of 10 seconds.
setAsyncTimeoutMillis
public void setAsyncTimeoutMillis(int asyncTimeoutMillis)
getServletContainerAdapter
public ServletContainerAdapter getServletContainerAdapter()
setServletContainerAdapter
public void setServletContainerAdapter(ServletContainerAdapter servletContainerAdapter)
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.