Package com.atlan.net

Class RequestOptions

java.lang.Object
com.atlan.net.RequestOptions

public class RequestOptions extends Object
Class to encapsulate all the options that can be overridden on individual API calls. For the moment, only getDefault() is used (behind-the-scenes), but this would provide the foundation to open up per-request variations of things like the maximum number of retries to allow.
  • Method Details

    • getDefault

      public static RequestOptions getDefault()
      Returns a default set of request options, using the global settings of the SDK.
      Returns:
      default request options
    • from

      Returns a new set of request options, initialized from the values set in the provided client.
      Parameters:
      client - from which to initialize the options
      Returns:
      a new set of request options
    • builder

      public static RequestOptions.RequestOptionsBuilder builder()
    • toBuilder

    • getConnectTimeout

      public int getConnectTimeout()
    • getReadTimeout

      public int getReadTimeout()
    • getMaxNetworkRetries

      public int getMaxNetworkRetries()
    • getConnectionProxy

      public Proxy getConnectionProxy()
    • getProxyCredential

      public PasswordAuthentication getProxyCredential()
    • getExtraHeaders

      public Map<String,List<String>> getExtraHeaders()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object