|
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.SameUserStrategy
public class SameUserStrategy
The SameUserStrategy
class is the most basic implementation
of the UserStrategy
class. It assumes that the web application is
used by just one user (or that the preference settings and hit history may
be identical for all users).
Constructor Summary | |
---|---|
SameUserStrategy()
|
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
1. |
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 SameUserStrategy()
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
1.
authenticate
in class UserStrategy
req
- The current HTTP request objectres
- The current HTTP response object
User
object (named 1)
|
DJDoc v.1.0.0b-1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |