Package org.apache.sling.testing.clients
Class SystemPropertiesConfig
- java.lang.Object
-
- org.apache.sling.testing.clients.SystemPropertiesConfig
-
public class SystemPropertiesConfig extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_PREFIXPrefix for IT-specific system propertiesstatic java.lang.StringHTTP_DELAY_PROPSystem property forgetHttpDelay()Prefixed byCONFIG_PROP_PREFIXstatic java.lang.StringHTTP_LOG_RETRIES_PROPSystem property forisHttpLogRetries()Prefixed byCONFIG_PROP_PREFIXstatic java.lang.StringHTTP_RETRIES_DELAY_PROPSystem property forgetHttpRetriesDelay()Prefixed byCONFIG_PROP_PREFIXstatic java.lang.StringHTTP_RETRIES_ERROR_CODES_PROPSystem property forgetHttpRetriesErrorCodes()Prefixed byCONFIG_PROP_PREFIXstatic java.lang.StringHTTP_RETRIES_PROPSystem property forgetHttpRetries()Prefixed byCONFIG_PROP_PREFIX
-
Constructor Summary
Constructors Constructor Description SystemPropertiesConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetHttpDelay()Custom delay in milliseconds before an HTTP request goes through.static intgetHttpRetries()Number of http call retries in case of a 5XX response codestatic intgetHttpRetriesDelay()The delay in milliseconds between http retriesstatic java.util.Collection<java.lang.Integer>getHttpRetriesErrorCodes()Comma-separated list of http response codes for which to retry the request If empty, all 5XX error codes will be retriedstatic java.lang.StringgetPrefixedPropertyName(java.lang.String prop)static booleanisHttpLogRetries()Whether to log or not http request retries
-
-
-
Field Detail
-
CONFIG_PROP_PREFIX
public static final java.lang.String CONFIG_PROP_PREFIX
Prefix for IT-specific system properties- See Also:
- Constant Field Values
-
HTTP_DELAY_PROP
public static final java.lang.String HTTP_DELAY_PROP
System property forgetHttpDelay()Prefixed byCONFIG_PROP_PREFIX- See Also:
- Constant Field Values
-
HTTP_RETRIES_PROP
public static final java.lang.String HTTP_RETRIES_PROP
System property forgetHttpRetries()Prefixed byCONFIG_PROP_PREFIX- See Also:
- Constant Field Values
-
HTTP_RETRIES_DELAY_PROP
public static final java.lang.String HTTP_RETRIES_DELAY_PROP
System property forgetHttpRetriesDelay()Prefixed byCONFIG_PROP_PREFIX- See Also:
- Constant Field Values
-
HTTP_LOG_RETRIES_PROP
public static final java.lang.String HTTP_LOG_RETRIES_PROP
System property forisHttpLogRetries()Prefixed byCONFIG_PROP_PREFIX- See Also:
- Constant Field Values
-
HTTP_RETRIES_ERROR_CODES_PROP
public static final java.lang.String HTTP_RETRIES_ERROR_CODES_PROP
System property forgetHttpRetriesErrorCodes()Prefixed byCONFIG_PROP_PREFIX- See Also:
- Constant Field Values
-
-
Method Detail
-
getPrefixedPropertyName
public static java.lang.String getPrefixedPropertyName(java.lang.String prop)
-
getHttpDelay
public static long getHttpDelay()
Custom delay in milliseconds before an HTTP request goes through. Used byDelayRequestInterceptor
-
getHttpRetries
public static int getHttpRetries()
Number of http call retries in case of a 5XX response code
-
getHttpRetriesDelay
public static int getHttpRetriesDelay()
The delay in milliseconds between http retries
-
isHttpLogRetries
public static boolean isHttpLogRetries()
Whether to log or not http request retries
-
getHttpRetriesErrorCodes
public static java.util.Collection<java.lang.Integer> getHttpRetriesErrorCodes()
Comma-separated list of http response codes for which to retry the request If empty, all 5XX error codes will be retried
-
-