| | |
| | | |
| | | public Map<String, String> getQueryMap(String query) { |
| | | Map<String, String> map = new HashMap<>(); |
| | | if(query instanceof String) { |
| | | String[] params = query.split(STR_AMP); |
| | | for (String param : params) { |
| | | String name = param.split(STR_EQUAL)[0]; |
| | | String value = param.split(STR_EQUAL)[1]; |
| | | map.put(name, value); |
| | | } |
| | | } else { |
| | | // map bleibt leer |
| | | try { |
| | | if(query instanceof String) { |
| | | String[] params = query.split(STR_AMP); |
| | | for (String param : params) { |
| | | String name = param.split(STR_EQUAL)[0]; |
| | | String value = param.split(STR_EQUAL)[1]; |
| | | map.put(name, value); |
| | | } |
| | | } else { |
| | | // map bleibt leer |
| | | } |
| | | } catch(Exception ex) { |
| | | |
| | | } finally { |
| | | return map; |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | /*public String getRouteString(HttpExchange exchange) { |