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.jetty
Class StreamClientConfigurationImpl

    java.lang.Object
      org.fourthline.cling.transport.impl.jetty.StreamClientConfigurationImpl

All Implemented Interfaces:
  StreamClientConfiguration

    public class StreamClientConfigurationImpl

extends Object
implements StreamClientConfiguration

Settings for the Jetty 8 implementation.

Author:
  Christian Bauer

Field Summary
`protected int` | `connectionTimeoutSeconds`
`protected ExecutorService` | `executorService`
`protected int` | `responseTimeoutSeconds`

Constructor Summary
`StreamClientConfigurationImpl(Executor executor)` Jetty HttpClient needs a thread pool to execute its maintenance tasks, and to execute requests.
`StreamClientConfigurationImpl(ExecutorService executorService)`

Method Summary
`int` | `getConnectionTimeoutSeconds()`
`ExecutorService` | `getExecutorService()`
`int` | `getResponseTimeoutSeconds()`
`String` | `getUserAgentValue(int majorVersion, int minorVersion)` Defaults to string value of `ServerClientTokens`.
`void` | `setConnectionTimeoutSeconds(int connectionTimeoutSeconds)`
`void` | `setExecutorService(ExecutorService executorService)`
`void` | `setResponseTimeoutSeconds(int responseTimeoutSeconds)`

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

Field Detail

### executorService

    protected ExecutorService executorService

### connectionTimeoutSeconds

    protected int connectionTimeoutSeconds

### responseTimeoutSeconds

    protected int responseTimeoutSeconds

Constructor Detail

### StreamClientConfigurationImpl

    public StreamClientConfigurationImpl(Executor executor)

  Jetty HttpClient needs a thread pool to execute its maintenance tasks, and to execute requests. However, in Cling, the `StreamClient` is called in a separate thread anyway, so you should simply reuse the `UpnpServiceConfiguration.getSyncProtocolExecutor()`.

### StreamClientConfigurationImpl

    public StreamClientConfigurationImpl(ExecutorService executorService)

Method Detail

### getExecutorService

    public ExecutorService getExecutorService()

### setExecutorService

    public void setExecutorService(ExecutorService executorService)

### getResponseTimeoutSeconds

    public int getResponseTimeoutSeconds()

### setResponseTimeoutSeconds

    public void setResponseTimeoutSeconds(int responseTimeoutSeconds)

### getConnectionTimeoutSeconds

    public int getConnectionTimeoutSeconds()

### setConnectionTimeoutSeconds

    public void setConnectionTimeoutSeconds(int connectionTimeoutSeconds)

### getUserAgentValue

    public String getUserAgentValue(int majorVersion,
                                    int minorVersion)

  Defaults to string value of `ServerClientTokens`.

  Specified by:
    `getUserAgentValue` in interface `StreamClientConfiguration`
  Parameters:
    `majorVersion` - The UPnP UDA major version.
    `minorVersion` - The UPnP UDA minor version.
  Returns:
    The HTTP user agent value.

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.