remm 01/04/30 23:49:46
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpClient.java
Log:
- Add accessors for the credentials.
Revision Changes Path
1.4 +19 -3
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java
Index: HttpClient.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HttpClient.java 2001/04/30 19:19:03 1.3
+++ HttpClient.java 2001/05/01 06:49:46 1.4
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
1.3 2001/04/30 19:19:03 morgand Exp $
- * $Revision: 1.3 $
- * $Date: 2001/04/30 19:19:03 $
+ * $Header:
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
1.4 2001/05/01 06:49:46 remm Exp $
+ * $Revision: 1.4 $
+ * $Date: 2001/05/01 06:49:46 $
*
* ====================================================================
*
@@ -261,6 +261,22 @@
*/
public void setState(State state) {
this.state = state;
+ }
+
+
+ /**
+ * Get the username.
+ */
+ public String getUserName() {
+ return (credentials != null) ? credentials.getUserName() : null;
+ }
+
+
+ /**
+ * Get the password.
+ */
+ public String getPassword() {
+ return (credentials != null) ? credentials.getPassword() : null;
}