Package io.minio
Class Utils
java.lang.Object
io.minio.Utils
Collection of utility functions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInetAddress validation and conversion routines (java.net.InetAddress).static enumIdentifies and stores version information of minio-java package at run time.static classRegular Expression validation (using JDK 1.4+ regex support). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns S3 encoded string.static StringencodePath(String path) Returns S3 encoded string of given path where multiple '/' are trimmed.static <T> CompletableFuture<T>failedFuture(Throwable throwable) static okhttp3.HttpUrlgetBaseUrl(String endpoint) static Stringstatic StringgetHostHeader(okhttp3.HttpUrl url) static booleanisValidIPv4(String value) static booleanisValidIPv4OrIPv6(String value) static booleanisValidIPv6(String value) static Stringstatic <T> List<T>unmodifiableList(List<? extends T> value) static <K,V> Map<K, V> unmodifiableMap(Map<? extends K, ? extends V> value) static Stringstatic voidvalidateHostnameOrIPAddress(String endpoint) static voidvalidateNotEmptyString(String arg, String argName) static <T> TvalidateNotNull(T arg, String argName) static voidvalidateNullOrNotEmptyString(String arg, String argName) static voidvalidateUrl(okhttp3.HttpUrl url)
-
Field Details
-
AWS_S3_PREFIX
- See Also:
-
HOSTNAME_REGEX
-
AWS_ENDPOINT_REGEX
-
AWS_S3_ENDPOINT_REGEX
-
AWS_ELB_ENDPOINT_REGEX
-
AWS_S3_PREFIX_REGEX
-
REGION_REGEX
-
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAY
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
validateNotNull
-
validateNotEmptyString
-
validateNullOrNotEmptyString
-
isValidIPv4OrIPv6
-
isValidIPv6
-
isValidIPv4
-
validateHostnameOrIPAddress
-
validateUrl
public static void validateUrl(okhttp3.HttpUrl url) -
getBaseUrl
-
getHostHeader
-
urlDecode
-
unmodifiableList
-
unmodifiableMap
-
stringify
-
encode
Returns S3 encoded string. -
encodePath
Returns S3 encoded string of given path where multiple '/' are trimmed. -
failedFuture
-
getDefaultUserAgent
-