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.teleal.cling.transport.impl
Class StreamClientConfigurationImpl

    java.lang.Object
      org.teleal.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 5 seconds;
`int` | `getDataReadTimeoutSeconds()` Defaults to 5 seconds.
`String` | `getUserAgentValue(int majorVersion, int minorVersion)` Defaults to the values defined in `Constants`.
`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 5 seconds;

### setConnectionTimeoutSeconds

    public void setConnectionTimeoutSeconds(int connectionTimeoutSeconds)

### getDataReadTimeoutSeconds

    public int getDataReadTimeoutSeconds()

  Defaults to 5 seconds.

### setDataReadTimeoutSeconds

    public void setDataReadTimeoutSeconds(int dataReadTimeoutSeconds)

### getUserAgentValue

    public String getUserAgentValue(int majorVersion,
                                    int minorVersion)

  Defaults to the values defined in `Constants`.

  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 © 2011 Teleal GmbH, Switzerland. All Rights Reserved.