java.lang.Object
io.helidon.common.uri.UriEncoding
Support for encoding and decoding of URI in HTTP.
-
Nested Class Summary
-
Method Summary
-
Method Details
-
decodeUri
Decode a URI segment.- Parameters:
uriSegment
- URI segment with percent encoding- Returns:
- decoded string
-
encodeUri
Encode a URI segment.- Parameters:
uriSegment
- URI segment that may contain characters not allowed by the URI- Returns:
- URI segment with percent encoding
-
encode
Encodes the characters of string that are either non-ASCII characters or are ASCII characters that are not allowed.- Parameters:
s
- the string to be encodedt
- the URI component type identifying the ASCII characters that must be percent-encoded- Returns:
- the encoded string
-