|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.FlexSession
public abstract class FlexSession
The base for FlexSession implementations.
| Field Summary | |
|---|---|
static String |
FLEX_SESSION_LOG_CATEGORY
Log category for FlexSession related messages. |
| Method Summary | |
|---|---|
void |
addSessionAttributeListener(FlexSessionAttributeListener listener)
Adds a session attribute listener that will be notified when an attribute is added, removed or changed. |
static void |
addSessionCreatedListener(FlexSessionListener listener)
Adds a session created listener that will be notified when new sessions are created. |
void |
addSessionDestroyedListener(FlexSessionListener listener)
Adds a session destroy listener that will be notified when the session is destroyed. |
void |
clearRemoteCredentials(String serviceId,
String destinationId)
Clears any stored remote credentials from the session for the specified service destination. |
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 a snapshot of the names of all attributes bound to the session. |
List |
getFlexClients()
Returns a snapshot of the FlexClients associated with the FlexSession when this method is invoked. |
abstract String |
getId()
Returns the Id for the session. |
List |
getMessageClients()
Returns a snapshot of the MessageClients (subscriptions) associated with the FlexSession when this method is invoked. |
flex.messaging.FlexRemoteCredentials |
getRemoteCredentials(String serviceId,
String destinationId)
Returns the remote credentials stored in the session for the specified service destination. |
Principal |
getUserPrincipal()
This method should be called on FlexContext and not on this class. |
void |
invalidate()
Invalidates the FlexSession. |
boolean |
isUserInRole(String role)
Returns whether the current user is in the specified role. |
boolean |
isValid()
Returns whether the session is valid. |
void |
putRemoteCredentials(flex.messaging.FlexRemoteCredentials credentials)
Stores remote credentials in the session for proxied calls to remote systems. |
void |
removeAttribute(String name)
Removes the attribute bound to the specified name in the session. |
void |
removeSessionAttributeListener(FlexSessionAttributeListener listener)
Removes a session attribute listener. |
static void |
removeSessionCreatedListener(FlexSessionListener listener)
Removes a session created listener. |
void |
removeSessionDestroyedListener(FlexSessionListener listener)
Removes a session destroy listener. |
void |
setAttribute(String name,
Object value)
Binds an attribute value to the session under the specified name. |
void |
setUserPrincipal(Principal userPrincipal)
This method should be called on FlexContext and not on this class. |
| 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 FLEX_SESSION_LOG_CATEGORY
| Method Detail |
|---|
public static void addSessionCreatedListener(FlexSessionListener listener)
listener - The listener to add.FlexSessionListenerpublic static void removeSessionCreatedListener(FlexSessionListener listener)
listener - The listener to remove.FlexSessionListenerpublic Principal getUserPrincipal()
public void setUserPrincipal(Principal userPrincipal)
userPrincipal - The principal to associate with the session.public void addSessionAttributeListener(FlexSessionAttributeListener listener)
listener - The listener to add.public void addSessionDestroyedListener(FlexSessionListener listener)
listener - The listener to add.FlexSessionListenerpublic Object getAttribute(String name)
name - The name the target attribute is bound to.
public Enumeration getAttributeNames()
public void removeAttribute(String name)
name - The name of the attribute to remove.public void removeSessionAttributeListener(FlexSessionAttributeListener listener)
listener - The listener to remove.public void removeSessionDestroyedListener(FlexSessionListener listener)
listener - The listener to remove.FlexSessionListener
public void setAttribute(String name,
Object value)
name - The name to bind the attribute under.value - The value of the attribute.public void putRemoteCredentials(flex.messaging.FlexRemoteCredentials credentials)
credentials - The remote credentials.
public flex.messaging.FlexRemoteCredentials getRemoteCredentials(String serviceId,
String destinationId)
serviceId - The service id.destinationId - The destination id.
public void clearRemoteCredentials(String serviceId,
String destinationId)
serviceId - The service Id.destinationId - The destination Id.public void invalidate()
public List getFlexClients()
public List getMessageClients()
public abstract String getId()
public boolean isUserInRole(String role)
role - The role to test.
public boolean isValid()
|
||||||||||
| 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/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/FlexSession.html