|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.web.RequestSession
An HTTP session.
| Constructor Summary | |
RequestSession(javax.servlet.http.HttpSession session)
Creates a new request session. |
|
| Method Summary | |
void |
addFile(java.lang.String name,
java.io.File file)
Adds a file to the session. |
static int |
getActiveCount()
Returns the number of currently active sessions. |
java.util.Map |
getAllFiles()
Returns a map of all session files. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of a session attribute. |
java.lang.Object |
getAttribute(java.lang.String name,
java.lang.Object defVal)
Returns the value of a session attribute. |
java.io.File |
getFile(java.lang.String name)
Returns a session file with a specified name. |
User |
getUser()
Returns the session user. |
void |
invalidate()
Invalidates this session. |
void |
removeAllFiles()
Removes all files from the session. |
void |
removeFile(java.lang.String name)
Removes a file from the session. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets a session attribute value. |
void |
setUser(User user)
Sets the session user. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RequestSession(javax.servlet.http.HttpSession session)
session - the request session| Method Detail |
public static int getActiveCount()
public java.lang.Object getAttribute(java.lang.String name)
name - the attribute name
public java.lang.Object getAttribute(java.lang.String name,
java.lang.Object defVal)
name - the attribute namedefVal - the default attribute value
public void setAttribute(java.lang.String name,
java.lang.Object value)
name - the attribute namevalue - the attribute value, or null to removepublic java.io.File getFile(java.lang.String name)
name - the file name
public java.util.Map getAllFiles()
public void addFile(java.lang.String name,
java.io.File file)
name - the file namefile - the file to addpublic void removeFile(java.lang.String name)
name - the file namepublic void removeAllFiles()
public User getUser()
setUser(org.liquidsite.core.content.User)public void setUser(User user)
user - the new session usergetUser()public void invalidate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||