|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sue445.kulib.util.UrlGenerateUtil
public final class UrlGenerateUtil
Utility for URL generate
| Field Summary | |
|---|---|
static Charset |
DEFAULT_ENCODING
default encoding (UTF-8) |
| Method Summary | ||
|---|---|---|
static void |
appendParameter(StringBuilder sb,
String name,
Object value)
add parameter(ex. |
|
static
|
appendParameters(StringBuilder sb,
String name,
T[] values)
add parameters (ex. |
|
static String |
createUrl(String baseUrl,
Map<String,Object> params)
create url with parameter map |
|
static String |
urlDecode(String str)
URL decode with default encoding. |
|
static String |
urlDecode(String str,
Charset encoding)
URL decode. |
|
static String |
urlEncode(String str)
URL encode with default encoding. |
|
static String |
urlEncode(String str,
Charset encoding)
URL encode. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Charset DEFAULT_ENCODING
| Method Detail |
|---|
public static String urlEncode(String str)
str - source string
public static String urlEncode(String str,
Charset encoding)
str - source stringencoding - public static String urlDecode(String str)
str - source string
public static String urlDecode(String str,
Charset encoding)
str - source stringencoding -
public static void appendParameter(StringBuilder sb,
String name,
Object value)
sb - destinationname - value -
public static <T> void appendParameters(StringBuilder sb,
String name,
T[] values)
sb - destinationname - values -
public static String createUrl(String baseUrl,
Map<String,Object> params)
baseUrl - params -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||