Class ApacheHttpRequest

    • Field Detail

      • httpClient

        private final org.apache.http.client.HttpClient httpClient
      • request

        private final org.apache.http.client.methods.HttpRequestBase request
    • Constructor Detail

      • ApacheHttpRequest

        ApacheHttpRequest​(org.apache.http.client.HttpClient httpClient,
                          org.apache.http.client.methods.HttpRequestBase request)
    • Method Detail

      • setTimeout

        public void setTimeout​(int connectTimeout,
                               int readTimeout)
                        throws java.io.IOException
        Description copied from class: LowLevelHttpRequest
        Sets the connection and read timeouts.

        Default implementation does nothing, but subclasses should normally override.

        Overrides:
        setTimeout in class LowLevelHttpRequest
        Parameters:
        connectTimeout - timeout in milliseconds to establish a connection or 0 for an infinite timeout
        readTimeout - Timeout in milliseconds to read data from an established connection or 0 for an infinite timeout
        Throws:
        java.io.IOException - I/O exception