public class AsyncServletStreamServerConfigurationImpl extends Object implements StreamServerConfiguration
If you are trying to integrate Cling with an existing/running servlet
container, implement ServletContainerAdapter
.
Modifier and Type | Field and Description |
---|---|
protected int |
asyncTimeoutSeconds |
protected int |
listenPort |
protected ServletContainerAdapter |
servletContainerAdapter |
Constructor and Description |
---|
AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter)
Defaults to port '0', ephemeral.
|
AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter,
int listenPort) |
AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter,
int listenPort,
int asyncTimeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
int |
getAsyncTimeoutSeconds()
The time in seconds this server wait for the
Router
to execute a UpnpStream . |
int |
getListenPort() |
ServletContainerAdapter |
getServletContainerAdapter() |
void |
setAsyncTimeoutSeconds(int asyncTimeoutSeconds) |
void |
setListenPort(int listenPort) |
void |
setServletContainerAdapter(ServletContainerAdapter servletContainerAdapter) |
protected ServletContainerAdapter servletContainerAdapter
protected int listenPort
protected int asyncTimeoutSeconds
public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter)
public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter, int listenPort)
public AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter, int listenPort, int asyncTimeoutSeconds)
public int getListenPort()
getListenPort
in interface StreamServerConfiguration
0
.public void setListenPort(int listenPort)
public int getAsyncTimeoutSeconds()
Router
to execute a UpnpStream
.public void setAsyncTimeoutSeconds(int asyncTimeoutSeconds)
public ServletContainerAdapter getServletContainerAdapter()
public void setServletContainerAdapter(ServletContainerAdapter servletContainerAdapter)
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.