Revision 1822
Added by Matt Jones over 20 years ago
Metacat.java | ||
---|---|---|
42 | 42 |
* |
43 | 43 |
* @param username the username of the user, like an LDAP DN |
44 | 44 |
* @param password the password for that user for authentication |
45 |
* @return the response string from metacat in XML format |
|
45 | 46 |
* @throws MetacatAuthException when the username/password could |
46 | 47 |
* not be authenticated |
47 | 48 |
*/ |
48 |
public void login(String username, String password)
|
|
49 |
public String login(String username, String password)
|
|
49 | 50 |
throws MetacatAuthException, MetacatInaccessibleException; |
50 | 51 |
|
51 | 52 |
/** |
52 |
* Method used to log out a metacat server. When Metacat server will end
|
|
53 |
* the session when this call is invoken.
|
|
53 |
* Method used to log out a metacat server. The Metacat server will end
|
|
54 |
* the session when this call is invoked.
|
|
54 | 55 |
* |
56 |
* @return the response string from metacat in XML format |
|
55 | 57 |
* @throws MetacatInaccessibleException when the metacat server can not be |
56 | 58 |
* reached or does not respond |
57 | 59 |
*/ |
58 |
public void logout() throws MetacatInaccessibleException, MetacatException; |
|
60 |
public String logout() throws MetacatInaccessibleException, |
|
61 |
MetacatException; |
|
59 | 62 |
|
60 | 63 |
/** |
61 | 64 |
* Read an XML document from the metacat server session, accessed by docid, |
... | ... | |
142 | 145 |
* @param metacatUrl the URL for the metacat server |
143 | 146 |
*/ |
144 | 147 |
public void setMetacatUrl(String metacatUrl); |
148 |
|
|
149 |
/** |
|
150 |
* Get the session identifier for this session. |
|
151 |
* |
|
152 |
* @returns the sessionId as a String, or null if the session is invalid |
|
153 |
*/ |
|
154 |
public String getSessionId(); |
|
145 | 155 |
} |
Also available in: Unified diff
Modified metacat to now provide the session identifier in the response
xml message when a login is called. This has not been fully tested.
I removed the HttpMessage class from metacat in favor of using the version
of that class that is found in the utilities module. This may cause some
unforeseen problems. We'll see.