Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary
`protected int` | `asyncTimeoutMillis`
`protected int` | `listenPort`
`protected ServletContainerAdapter` | `servletContainerAdapter`

Constructor Summary
`AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter)` Defaults to port '0', ephemeral.
`AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter, int listenPort)`
`AsyncServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter, int listenPort, int asyncTimeoutMillis)`

Method Summary
`int` | `getAsyncTimeoutMillis()` The time in milliseconds this server wait for the `Router` to execute a `UpnpStream`.
`int` | `getListenPort()`
`ServletContainerAdapter` | `getServletContainerAdapter()`
`void` | `setAsyncTimeoutMillis(int asyncTimeoutMillis)`
`void` | `setListenPort(int listenPort)`
`void` | `setServletContainerAdapter(ServletContainerAdapter servletContainerAdapter)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### servletContainerAdapter

    protected ServletContainerAdapter servletContainerAdapter

### listenPort

    protected int listenPort

### asyncTimeoutMillis

    protected int asyncTimeoutMillis

Constructor Detail

### 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)

Method Detail

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.