Package com.itextpdf.licensing.remote
Class LicenseKeyRemoteConfigurer
java.lang.Object
com.itextpdf.licensing.remote.LicenseKeyRemoteConfigurer
Configuration class providing API to set up reporting requests and responses.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidResets proxy host and port values.static voidResets request timeout value.static voidSets up proxy host and port values for the http requests and responses.static voidsetRequestTimeoutMillis(int timeoutMillis) Sets up request timeout value for the http requests in milliseconds.
-
Field Details
-
DEFAULT_REQUEST_TIMEOUT_MILLIS
public static final int DEFAULT_REQUEST_TIMEOUT_MILLIS- See Also:
-
-
Method Details
-
setProxy
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.
-