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