|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.util.TimeoutAbstractObject
flex.messaging.FlexSession
flex.messaging.HttpFlexSession
public class HttpFlexSession
FlexSession implementation for use with HTTP-based channels.
| Field Summary | |
|---|---|
static String |
SESSION_MAP
|
| Fields inherited from class flex.messaging.FlexSession |
|---|
FLEX_SESSION_LOG_CATEGORY |
| Method Summary | |
|---|---|
void |
attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
HttpSessionAttributeListener callback; processes the addition of an attribute to an HttpSession. |
void |
attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
HttpSessionAttributeListener callback; processes the removal of an attribute from an HttpSession. |
void |
attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
HttpSessionAttributeListener callback; processes the replacement of an attribute in an HttpSession. |
Object |
getAttribute(String name)
Returns the attribute bound to the specified name in the session, or null if no attribute is bound under the name. |
Enumeration |
getAttributeNames()
Returns the names of all attributes bound to the session. |
static HttpFlexSession |
getFlexSession(javax.servlet.http.HttpServletRequest req)
Creates or retrieves a FlexSession for the current Http request. |
String |
getId()
Returns the Id for the session. |
Principal |
getUserPrincipal()
Returns the user principal associated with the session. |
void |
invalidate()
Invalidates the session. |
void |
removeAttribute(String name)
Removes the attribute bound to the specified name in the session. |
void |
sessionCreated(javax.servlet.http.HttpSessionEvent event)
Implements HttpSessionListener. |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Implements HttpSessionListener. |
void |
setAttribute(String name,
Object value)
Binds an attribute to the session under the specified name. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Implements HttpSessionBindingListener. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Implements HttpSessionBindingListener. |
| Methods inherited from class flex.messaging.util.TimeoutAbstractObject |
|---|
cancelTimeout, getLastUse, getTimeoutFuture, getTimeoutManager, getTimeoutPeriod, getTimeoutTask, setLastUse, setTimeoutFuture, setTimeoutManager, setTimeoutPeriod, setTimeoutTask, updateLastUse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface flex.messaging.client.FlexClientListener |
|---|
clientCreated, clientDestroyed |
| Methods inherited from interface flex.messaging.MessageClientListener |
|---|
messageClientCreated, messageClientDestroyed |
| Field Detail |
|---|
public static final String SESSION_MAP
| Method Detail |
|---|
public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
attributeAdded in interface javax.servlet.http.HttpSessionAttributeListenerpublic void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListenerpublic void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListenerpublic static HttpFlexSession getFlexSession(javax.servlet.http.HttpServletRequest req)
req - The Http request.
public Principal getUserPrincipal()
getUserPrincipal in class FlexSessionpublic void invalidate()
invalidate in class FlexSessionpublic Object getAttribute(String name)
getAttribute in class FlexSessionname - The name the target attribute is bound to.
public Enumeration getAttributeNames()
getAttributeNames in class FlexSessionpublic String getId()
getId in class FlexSessionpublic void removeAttribute(String name)
removeAttribute in class FlexSessionname - The name of the attribute to remove.public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
sessionCreated in interface javax.servlet.http.HttpSessionListenerpublic void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
public void setAttribute(String name,
Object value)
setAttribute in class FlexSessionname - The name to bind the attribute under.value - The attribute value.public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/HttpFlexSession.html