public class CodecsKt
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decodeURLPart(java.lang.String $receiver,
int start,
int end,
java.nio.charset.Charset charset)
Decode percent encoded URL part within the specified range [start, end).
This function is not intended to decode urlencoded forms so it doesn't decode plus character to space.
|
static java.lang.String |
decodeURLQueryComponent(java.lang.String $receiver,
int start,
int end,
boolean plusIsSpace,
java.nio.charset.Charset charset)
Decode URL query component
|
static java.lang.String |
encodeOAuth(java.lang.String $receiver)
Encode this in percent encoding specified here:
https://tools.ietf.org/html/rfc5849#section-3.6
|
static java.lang.String |
encodeURLParameter(java.lang.String $receiver,
boolean spaceToPlus)
Encode this as query parameter
|
static java.lang.String |
encodeURLPath(java.lang.String $receiver)
Encode URL path or component. It escapes all illegal or ambiguous characters
|
static java.lang.String |
encodeURLQueryComponent(java.lang.String $receiver,
boolean encodeFull,
boolean spaceToPlus,
java.nio.charset.Charset charset)
Encode url part as specified in
https://tools.ietf.org/html/rfc3986#section-2
|
public static java.lang.String encodeURLQueryComponent(java.lang.String $receiver, boolean encodeFull, boolean spaceToPlus, java.nio.charset.Charset charset)
Encode url part as specified in https://tools.ietf.org/html/rfc3986#section-2
public static java.lang.String encodeURLPath(java.lang.String $receiver)
Encode URL path or component. It escapes all illegal or ambiguous characters
public static java.lang.String encodeOAuth(java.lang.String $receiver)
Encode this in percent encoding specified here: https://tools.ietf.org/html/rfc5849#section-3.6
public static java.lang.String encodeURLParameter(java.lang.String $receiver, boolean spaceToPlus)
Encode this as query parameter
public static java.lang.String decodeURLQueryComponent(java.lang.String $receiver, int start, int end, boolean plusIsSpace, java.nio.charset.Charset charset)
Decode URL query component
public static java.lang.String decodeURLPart(java.lang.String $receiver, int start, int end, java.nio.charset.Charset charset)
Decode percent encoded URL part within the specified range [start, end). This function is not intended to decode urlencoded forms so it doesn't decode plus character to space.