/[projects]/miscJava/GenericJavaUtils/src/dk/thoerup/genericjavautils/HttpUtil.java
ViewVC logotype

Diff of /miscJava/GenericJavaUtils/src/dk/thoerup/genericjavautils/HttpUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1420 by torben, Mon May 2 15:13:56 2011 UTC revision 1421 by torben, Mon May 2 16:50:15 2011 UTC
# Line 17  import java.util.Map; Line 17  import java.util.Map;
17  public class HttpUtil {  public class HttpUtil {
18                    
19          static public Map<String,String> decodeUri(String uri) {          static public Map<String,String> decodeUri(String uri) {
20                  String parts[] = uri.split("\\?");                  if (uri.indexOf('?') != -1) {
21                  return decodeParams( parts[1] );                          String parts[] = uri.split("\\?");
22                            return decodeParams( parts[1] );
23                    } else {
24                            return new HashMap<String,String>();
25                    }
26                            
27                    
28                    
29          }          }
30                    
31          static public Map<String,String> decodeParams(String str) {          static public Map<String,String> decodeParams(String str) {

Legend:
Removed from v.1420  
changed lines
  Added in v.1421

  ViewVC Help
Powered by ViewVC 1.1.20