You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2004/10/27 12:46:24 UTC
cvs commit: jakarta-slide/proposals/wck/src/org/apache/slide/simple/authentication AbstractPoolingConnectionManager.java
ozeigermann 2004/10/27 03:46:24
Modified: proposals/wck/src/org/apache/slide/simple/reference
FakePoolingConnectionManager.java
FakeSessionManager.java
proposals/wck/src/org/apache/slide/simple/authentication
AbstractPoolingConnectionManager.java
Log:
Javadoc extensions
Revision Changes Path
1.2 +13 -7 jakarta-slide/proposals/wck/src/org/apache/slide/simple/reference/FakePoolingConnectionManager.java
Index: FakePoolingConnectionManager.java
===================================================================
RCS file: /home/cvs/jakarta-slide/proposals/wck/src/org/apache/slide/simple/reference/FakePoolingConnectionManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FakePoolingConnectionManager.java 12 Oct 2004 20:19:02 -0000 1.1
+++ FakePoolingConnectionManager.java 27 Oct 2004 10:46:24 -0000 1.2
@@ -26,10 +26,16 @@
import org.apache.slide.simple.authentication.AbstractPoolingConnectionManager;
/**
- * @author Olli
- *
- * TODO To change the template for this generated type comment go to Window -
- * Preferences - Java - Code Style - Code Templates
+ * Sample implementation for the
+ * {@link org.apache.slide.simple.authentication.AbstractPoolingConnectionManager}.
+ * It simply grants access to any user remembering the password for later access
+ * without it. User "root" is an exception with no access to show what happens when
+ * access is denied. Addtionally, every connection with a counter ending in "1" will be
+ * invalid to show what happens when a connection times out or looses validity for any
+ * other reason.
+ * <br><br>
+ * A triple of the username and the password and a counter separated by colons is
+ * returned as the connection.
*/
public class FakePoolingConnectionManager extends AbstractPoolingConnectionManager {
1.2 +8 -7 jakarta-slide/proposals/wck/src/org/apache/slide/simple/reference/FakeSessionManager.java
Index: FakeSessionManager.java
===================================================================
RCS file: /home/cvs/jakarta-slide/proposals/wck/src/org/apache/slide/simple/reference/FakeSessionManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FakeSessionManager.java 12 Oct 2004 20:19:02 -0000 1.1
+++ FakeSessionManager.java 27 Oct 2004 10:46:24 -0000 1.2
@@ -29,10 +29,11 @@
import org.apache.slide.simple.authentication.SessionAuthenticationManager;
/**
- * @author Olli
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * Reference implementation for the
+ * {@link org.apache.slide.simple.authentication.SessionAuthenticationManager}.
+ * It simply grants access to any user remembering the password for later access
+ * without it. A pair of the username and the password separated by a colon is
+ * returned as the session.
*/
public class FakeSessionManager implements SessionAuthenticationManager {
1.2 +4 -4 jakarta-slide/proposals/wck/src/org/apache/slide/simple/authentication/AbstractPoolingConnectionManager.java
Index: AbstractPoolingConnectionManager.java
===================================================================
RCS file: /home/cvs/jakarta-slide/proposals/wck/src/org/apache/slide/simple/authentication/AbstractPoolingConnectionManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AbstractPoolingConnectionManager.java 12 Oct 2004 20:19:03 -0000 1.1
+++ AbstractPoolingConnectionManager.java 27 Oct 2004 10:46:24 -0000 1.2
@@ -32,7 +32,7 @@
/**
* Framework for a pooling connection manager. Session objects as returned with
- * the {@link SessionAuthenticationManager}are supposed to be somewhat
+ * the {@link SessionAuthenticationManager} are supposed to be somewhat
* expensive to create to justify reusing them in a pool of this kind. We call
* such sessions a connection, that's where the name comes from.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org