Class LicenseKeyRemoteConfigurer

java.lang.Object
com.itextpdf.licensing.remote.LicenseKeyRemoteConfigurer

public final class LicenseKeyRemoteConfigurer extends Object
Configuration class providing API to set up reporting requests and responses.
  • Field Details

    • DEFAULT_REQUEST_TIMEOUT_MILLIS

      public static final int DEFAULT_REQUEST_TIMEOUT_MILLIS
      See Also:
  • Method Details

    • setProxy

      public static void setProxy (String host, int port)
      Sets up proxy host and port values for the http requests and responses. Mind that this method should be called before the first license loading.
      Parameters:
      host - proxy host value.
      port - proxy port value.
    • resetProxy

      public static void resetProxy()
      Resets proxy host and port values. Mind that this method should be called before the first license loading. Calling this method after the first license loading does not change proxy host and port used in http responses.
    • setRequestTimeoutMillis

      public static void setRequestTimeoutMillis (int timeoutMillis)
      Sets up request timeout value for the http requests in milliseconds. Mind that this method should be called before the first license loading.
      Parameters:
      timeoutMillis - timeout value in milliseconds.
    • resetRequestTimeoutMillis

      public static void resetRequestTimeoutMillis()
      Resets request timeout value. Mind that this method should be called before the first license loading. Calling this method after the first license loading does not change request timeout used in http responses.