public final class URLStrParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODED_AND_MARK |
static String |
ENCODED_PID_KEY |
static String |
ENCODED_QUESTION_MARK |
static String |
ENCODED_TIMESTAMP_KEY |
| Modifier and Type | Method and Description |
|---|---|
static URL |
parseDecodedStr(String decodedURLStr) |
static URL |
parseEncodedStr(String encodedURLStr) |
static Map<String,String> |
parseParams(String rawParams,
boolean encoded) |
static String[] |
parseRawURLToArrays(String rawURLStr,
int pathEndIdx) |
public static final String ENCODED_QUESTION_MARK
public static final String ENCODED_TIMESTAMP_KEY
public static final String ENCODED_PID_KEY
public static final String ENCODED_AND_MARK
public static URL parseDecodedStr(String decodedURLStr)
decodedURLStr - : after URL.decode(java.lang.String) string
decodedURLStr format: protocol://username:password@host:port/path?k1=v1&k2=v2
[protocol://][username:password@][host:port]/[path][?k1=v1&k2=v2]public static URL parseEncodedStr(String encodedURLStr)
encodedURLStr - : after URL.encode(String) string
encodedURLStr after decode format: protocol://username:password@host:port/path?k1=v1&k2=v2
[protocol://][username:password@][host:port]/[path][?k1=v1&k2=v2]Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.