Package com.inet.html

Interface InetHtmlDocument.TimeoutProvider

Enclosing class:
InetHtmlDocument

public static interface InetHtmlDocument.TimeoutProvider
A value for the InetHtmlDocument.PROPERTY_CONNECTION_TIMEOUT property to dynamically determine the connection timeout per destination.
Since:
1.10
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getTimeout(URL connection)
    Returns the timeout in seconds for an URL destination
  • Method Details

    • getTimeout

      int getTimeout(URL connection)
      Returns the timeout in seconds for an URL destination
      Parameters:
      connection - the connection to check for, a value of null yields -1
      Returns:
      the timeout in seconds. Values are interpreted as:
      • values > 0 - will be used as timeout in seconds
      • values == 0 - will set an infinite timeout
      • values < 0 - will DISABLE all connections