Revision 5337
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 |
String urlParams = FUNCTION_KEYWORD+"="+FUNCTION_NAME_LOGIN; |
|
81 |
System.out.println("in login"); |
|
82 |
String urlParams = FUNCTION_KEYWORD+"="+FUNCTION_NAME_LOGIN; |
|
82 | 83 |
String postData = "username="+username+"&password="+password; |
83 | 84 |
String response = null; |
85 |
|
|
84 | 86 |
|
85 | 87 |
try { |
86 | 88 |
response = sendData(RESOURCE_SESSION, POST, urlParams, postData, "application/x-www-form-urlencoded", null, null); |
... | ... | |
561 | 563 |
HttpURLConnection connection = null ; |
562 | 564 |
|
563 | 565 |
String restURL = contextRootUrl+resource; |
566 |
System.out.println("restURL: " + restURL); |
|
564 | 567 |
|
565 | 568 |
if (urlParamaters != null) { |
566 | 569 |
if (restURL.indexOf("?") == -1) |
Also available in: Unified diff
removed CrudService dependency on servlet params. CrudService is now a singleton. I'm getting an error from metacat saying it can't find teh systemmetadata schema, even though it is, in fact, registered with metacat. need to identify why this is happening.