|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.client.FlexClient
public class FlexClient
Represents a Flex client application instance on the server.
| Field Summary | |
|---|---|
static String |
FLEX_CLIENT_LOG_CATEGORY
Log category for FlexClient related messages. |
| Method Summary | |
|---|---|
void |
addClientAttributeListener(FlexClientAttributeListener listener)
Adds a FlexClient attribute listener that will be notified when an attribute is added, removed or changed. |
static void |
addClientCreatedListener(FlexClientListener listener)
Adds a create listener that will be notified when new FlexClients are created. |
void |
addClientDestroyedListener(FlexClientListener listener)
Adds a destroy listener that will be notified when the FlexClient is destroyed. |
Object |
getAttribute(String name)
Returns the attribute bound to the specified name for the FlexClient, or null if no attribute is bound under the name. |
Enumeration |
getAttributeNames()
Returns a snapshot of the names of all attributes bound to the FlexClient. |
List |
getFlexSessions()
Returns a snapshot of the FlexSessions associated with the FlexClient when this method is invoked. |
String |
getId()
Returns the unique Id for the FlexClient. |
List |
getMessageClients()
Returns a snapshot of the MessageClients (subscriptions) associated with the FlexClient when this method is invoked. |
void |
invalidate()
Invalidates the FlexClient. |
boolean |
isValid()
Returns true if the FlexClient is valid; false if it has been invalidated. |
void |
removeAttribute(String name)
Removes the attribute bound to the specified name for the FlexClient. |
void |
removeClientAttributeListener(FlexClientAttributeListener listener)
Removes a FlexClient attribute listener. |
static void |
removeClientCreatedListener(FlexClientListener listener)
Removes a FlexClient created listener. |
void |
removeClientDestroyedListener(FlexClientListener listener)
Removes a FlexClient destroyed listener. |
void |
setAttribute(String name,
Object value)
Binds an attribute value for the FlexClient under the specified name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface flex.messaging.FlexSessionListener |
|---|
sessionCreated, sessionDestroyed |
| Methods inherited from interface flex.messaging.MessageClientListener |
|---|
messageClientCreated, messageClientDestroyed |
| Methods inherited from interface flex.messaging.util.TimeoutCapable |
|---|
cancelTimeout, getLastUse, getTimeoutPeriod, setTimeoutFuture, timeout |
| Field Detail |
|---|
public static final String FLEX_CLIENT_LOG_CATEGORY
| Method Detail |
|---|
public static void addClientCreatedListener(FlexClientListener listener)
listener - The listener to add.FlexClientListenerpublic static void removeClientCreatedListener(FlexClientListener listener)
listener - The listener to remove.FlexClientListenerpublic void addClientAttributeListener(FlexClientAttributeListener listener)
listener - The listener to add.public void addClientDestroyedListener(FlexClientListener listener)
listener - The listener to add.FlexClientListenerpublic Object getAttribute(String name)
name - The name the attribute is bound to.
public Enumeration getAttributeNames()
public void invalidate()
public boolean isValid()
public List getFlexSessions()
public List getMessageClients()
public String getId()
public void removeAttribute(String name)
name - The name of the attribute to remove.public void removeClientAttributeListener(FlexClientAttributeListener listener)
listener - The listener to remove.public void removeClientDestroyedListener(FlexClientListener listener)
listener - The listener to remove.FlexClientListener
public void setAttribute(String name,
Object value)
name - The name to bind the attribute under.value - The value of the attribute.
|
||||||||||
| 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/client/FlexClient.html