public class URICoder extends Object
unreserved = ALPHA / DIGIT / '-' / '.' / '_' / '˜';This encoder/decoder should be designed so that URI which contain only unreserved characters are processed faster.
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String s)
Decode the string as valid URI fragment.
|
static String |
encode(String s,
Set<Character> chars)
Encodes the string as valid URI fragment.
|
static String |
encodeRequestPath(String rawRequestPath) |
public static String encodeRequestPath(String rawRequestPath) throws ApikitRuntimeException
rawRequestPath - request path with original encoding /api/myEndpointApikitRuntimeException - when bad encoding detectedpublic static String encode(String s, Set<Character> chars)
s - The string to encode.chars - An ASCII set of characters that should not be encoded if found in the string.Copyright © 2025. All rights reserved.