|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.djdoc.app.UserStrategy
net.sf.djdoc.app.SimpleUserStrategy
public class SimpleUserStrategy
The SimpleUserStrategy
class is an implementation of the
UserStrategy
class which - like the SameUserStrategy
class -
does not interact with the container for authentication; every user accessing
the system for the first time will be given a unique name (actually the
current timestamp with millisecond precision) which is stored in a cookie.
Constructor Summary | |
---|---|
SimpleUserStrategy()
|
Method Summary | |
---|---|
User |
authenticate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This implementation of the abstract UserStrategy.authenticate(HttpServletRequest, HttpServletResponse)
method always returns an (existing or new) User with the name
specified by the timestamp at which the user accessed the system for the
first time. |
Methods inherited from class net.sf.djdoc.app.UserStrategy |
---|
findUserInDatabase, getStrategy, retrieveUserNameFromCookie, setup, storeUserNameInCookie |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleUserStrategy()
Method Detail |
---|
public User authenticate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
UserStrategy.authenticate(HttpServletRequest, HttpServletResponse)
method always returns an (existing or new) User
with the name
specified by the timestamp at which the user accessed the system for the
first time.
authenticate
in class UserStrategy
req
- The current HTTP request objectres
- The current HTTP response object
User
object named by the
timestamp of the user's first access to the system.
|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |