Class HttpUtils
java.lang.Object
org.projectnessie.client.http.impl.HttpUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyHeaders(HttpHeaders headers, URLConnection con) static voidcheckArgument(boolean expression, String msg, Object... vars) Check if argument is false.static StringcheckNonNullTrim(String str) check if base is null and if not trim any whitespace.
-
Field Details
-
GZIP
- See Also:
-
DEFLATE
- See Also:
-
ACCEPT_ENCODING
- See Also:
-
HEADER_ACCEPT
- See Also:
-
HEADER_ACCEPT_ENCODING
- See Also:
-
HEADER_CONTENT_ENCODING
- See Also:
-
HEADER_CONTENT_TYPE
- See Also:
-
-
Method Details
-
checkArgument
Check if argument is false. If false throw formatted error.- Parameters:
expression- expression which should be truemsg- message with formattingvars- string format args
-
checkNonNullTrim
check if base is null and if not trim any whitespace.- Parameters:
str- string to check if null- Returns:
- trimmed str
-
applyHeaders
-