public class UriUtils extends Object
Constructor and Description |
---|
UriUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
decode(String value,
Charset charset)
Uri Decode the value.
|
static String |
encode(String value)
Uri Encode the value, using the default Charset.
|
static String |
encode(String value,
boolean allowReservedCharacters) |
static String |
encode(String value,
Charset charset)
Uri Encode the value.
|
static String |
encode(String value,
Charset charset,
boolean allowReservedCharacters) |
static String |
encodeInternal(String value,
Charset charset,
boolean allowReservedCharacters)
Encodes the value, preserving all reserved characters..
|
static boolean |
isAbsolute(String uri)
Determines if the provided uri is an absolute uri.
|
static boolean |
isEncoded(String value,
Charset charset)
Determines if the value is already pct-encoded.
|
public static boolean isEncoded(String value, Charset charset)
value
- to check.public static String encode(String value)
value
- to encode.public static String encode(String value, Charset charset)
value
- to encode.charset
- to use.public static String decode(String value, Charset charset)
value
- to decodecharset
- to use.public static boolean isAbsolute(String uri)
uri
- to evaluate.public static String encodeInternal(String value, Charset charset, boolean allowReservedCharacters)
value
- inspect.charset
- to use.Copyright © 2012–2020 OpenFeign. All rights reserved.