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 StreamClientConfigurationImpl

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

All Implemented Interfaces:
  StreamClientConfiguration

    public class StreamClientConfigurationImpl

extends Object
implements StreamClientConfiguration

Settings for the default implementation.

Author:
  Christian Bauer

Constructor Summary
`StreamClientConfigurationImpl()`

Method Summary
`int` | `getConnectionTimeoutSeconds()` Defaults to 20 seconds.
`int` | `getDataReadTimeoutSeconds()` Defaults to 60 seconds.
`String` | `getUserAgentValue(int majorVersion, int minorVersion)` Defaults to string value of `ServerClientTokens`.
`boolean` | `isUsePersistentConnections()` Defaults to `false`, avoiding obscure bugs in the JDK.
`void` | `setConnectionTimeoutSeconds(int connectionTimeoutSeconds)`
`void` | `setDataReadTimeoutSeconds(int dataReadTimeoutSeconds)`
`void` | `setUsePersistentConnections(boolean usePersistentConnections)`

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

Constructor Detail

### StreamClientConfigurationImpl

    public StreamClientConfigurationImpl()

Method Detail

### isUsePersistentConnections

    public boolean isUsePersistentConnections()

  Defaults to `false`, avoiding obscure bugs in the JDK.

### setUsePersistentConnections

    public void setUsePersistentConnections(boolean usePersistentConnections)

### getConnectionTimeoutSeconds

    public int getConnectionTimeoutSeconds()

  Defaults to 20 seconds.

### setConnectionTimeoutSeconds

    public void setConnectionTimeoutSeconds(int connectionTimeoutSeconds)

### getDataReadTimeoutSeconds

    public int getDataReadTimeoutSeconds()

  Defaults to 60 seconds.

### setDataReadTimeoutSeconds

    public void setDataReadTimeoutSeconds(int dataReadTimeoutSeconds)

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