Class AGHTTPClient

java.lang.Object
com.franz.agraph.http.AGHTTPClient
All Implemented Interfaces:
AutoCloseable

public class AGHTTPClient extends Object implements AutoCloseable
Class responsible for handling HTTP connections.

Uses an unlimited pool of connections to allow safe, concurrent access.

Also contains methods for accessing AG services that operate above the repository level - such as managing repositories.

  • Field Details

    • PROP_HTTP_NUM_RETRIES

      public static final String PROP_HTTP_NUM_RETRIES
      Number of times an HTTP GET request is automatically retried, not counting the initial (failed) attempt, in case of errors caused by a connection timeout. Disabling this by setting it to 0 will expose "Connection reset" and "HTTP 408 Client timeout" errors. A value of 1 should enough to hide these supposedly harmless errors if the network is otherwise stable.
      See Also:
  • Constructor Details

    • AGHTTPClient

      public AGHTTPClient(String serverURL, org.apache.http.conn.HttpClientConnectionManager manager, org.apache.http.config.SocketConfig socketConfig)
    • AGHTTPClient

      public AGHTTPClient(String serverURL, org.apache.http.conn.HttpClientConnectionManager manager)
    • AGHTTPClient

      public AGHTTPClient(String serverURL)
  • Method Details