Revision 5339
Added by berkley almost 14 years ago
MetacatRestClient.java | ||
---|---|---|
78 | 78 |
*/ |
79 | 79 |
public String login(String username, String password) |
80 | 80 |
throws MetacatAuthException, MetacatInaccessibleException { |
81 |
System.out.println("in login"); |
|
82 | 81 |
String urlParams = FUNCTION_KEYWORD+"="+FUNCTION_NAME_LOGIN; |
83 | 82 |
String postData = "username="+username+"&password="+password; |
84 | 83 |
String response = null; |
... | ... | |
563 | 562 |
HttpURLConnection connection = null ; |
564 | 563 |
|
565 | 564 |
String restURL = contextRootUrl+resource; |
566 |
System.out.println("restURL: " + restURL); |
|
567 | 565 |
|
568 | 566 |
if (urlParamaters != null) { |
569 | 567 |
if (restURL.indexOf("?") == -1) |
... | ... | |
572 | 570 |
} |
573 | 571 |
|
574 | 572 |
URL u = new URL(restURL); |
575 |
System.out.println("url:"+restURL+ " postData:"+postData); |
|
576 | 573 |
URLConnection uc = u.openConnection(); |
577 | 574 |
connection= (HttpURLConnection) uc; |
578 | 575 |
|
Also available in: Unified diff
removed system.outs