Java Utililty Methods URL Parameter Builder

List of utility methods to do URL Parameter Builder

Description

The list of methods to do URL Parameter Builder are organized into topic(s).

Method

StringgetParameter(String source, int index)
get Parameter
String[] result = source.split("&");
try {
    return URLDecoder.decode(result[index].substring(result[index].indexOf("=") + 1), "UTF-8");
} catch (UnsupportedEncodingException e) {
    e.printStackTrace();
return null;
MapgetParameterMap(byte[] bytea)
get Parameter Map
Map<String, String> map = new HashMap<String, String>();
String rawstr = new String(bytea, SJIS_ENCODE);
String[] ampsplit = rawstr.split("&");
for (String str : ampsplit) {
    String[] params = str.split("=");
    String value = "";
    if (params.length > 1 && (params[1] != null) && (params[1].length() > 0)) {
        value = URLDecoder.decode(params[1], SJIS_ENCODE);
...
MapgetParams(String str)
get Params
return getParams(str, "&", "utf-8", true);
Map>getUrlParameters(final String url)
Returns url query parameters.
final Map<String, List<String>> params = new HashMap<String, List<String>>();
final String[] urlParts = url.split("\\?");
if (urlParts.length > 1) {
    final String query = urlParts[1];
    for (final String param : query.split("&")) {
        final String[] pair = param.split("=");
        final String key = decodeUrl(pair[0]);
        String value = "";
...
Map>getUrlParameters(String url)
get Url Parameters
Map<String, LinkedList<String>> params = new HashMap<String, LinkedList<String>>();
if (url == null) {
    return params;
String query;
String[] urlParts = url.split("\\?");
if (urlParts.length > 1) {
    query = urlParts[1];
...
MapgetUrlParameters(String url)
get Url Parameters
Map<String, String> params = new HashMap<String, String>();
String[] urlParts = url.split("\\?");
String query = "";
if (urlParts.length > 0) {
    query = urlParts[0];
if (urlParts.length > 1) {
    query = urlParts[1];
...
MapgetUrlParameters(String url)
get Url Parameters
Map<String, String> params = new LinkedHashMap<String, String>();
if (url != null) {
    String[] urlParts = url.split("\\?");
    if (urlParts.length > 1) {
        String query = urlParts[1];
        for (String param : query.split("&")) {
            String pair[] = param.split("=");
            String key = URLDecoder.decode(pair[0], "UTF-8");
...
Map>getUrlParameters(String url)
get Url Parameters
Map<String, List<String>> params = new HashMap<String, List<String>>();
String[] urlParts = url.split("\\?");
if (urlParts.length > 1) {
    String query = urlParts[1];
    for (String param : query.split("&")) {
        String pair[] = param.split("=");
        String key = URLDecoder.decode(pair[0], "UTF-8");
        String value = "";
...
Map>getUrlParameters(String url)
get Url Parameters
Map<String, List<String>> params = new HashMap<String, List<String>>();
String[] urlParts = url.split("\\?");
if (urlParts.length > 1) {
    String query = urlParts[1];
    return parseQuery(query);
return params;
MapgetUrlParameters(String url)
get Url Parameters
Map<String, String> params = new HashMap<>();
String query = url.substring(url.indexOf("?") + 1);
for (String param : query.split("\n\t")) {
    String pair[] = param.split("=");
    if (pair.length < 2)
        continue;
    String key = URLDecoder.decode(pair[0].replaceAll("&", ""), "utf-8");
    String value = "";
...