Class HttpClientConfiguration

java.lang.Object
com.bandwidth.http.client.HttpClientConfiguration
All Implemented Interfaces:
ReadonlyHttpClientConfiguration

public class HttpClientConfiguration
extends java.lang.Object
implements ReadonlyHttpClientConfiguration
Class to hold HTTP Client Configuration.
  • Constructor Summary

    Constructors 
    Constructor Description
    HttpClientConfiguration()
    Default Constructor.
  • Method Summary

    Modifier and Type Method Description
    long getTimeout()
    Getter for timeout.
    void setTimeout​(long timeout)
    Setter for timeout.
    java.lang.String toString()
    Converts this HttpClientConfiguration into string format.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getTimeout

      public long getTimeout()
      Getter for timeout.
      Specified by:
      getTimeout in interface ReadonlyHttpClientConfiguration
      Returns:
      the timeout in seconds
    • setTimeout

      public void setTimeout​(long timeout)
      Setter for timeout.
      Parameters:
      timeout - The timeout to set in seconds.
    • toString

      public java.lang.String toString()
      Converts this HttpClientConfiguration into string format.
      Overrides:
      toString in class java.lang.Object
      Returns:
      String representation of this class