|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.FlexContext
public class FlexContext
The FlexContext is a utility class that exposes the current execution context.
It provides access to FlexSession and FlexClient instances associated
with the current message being processed, as well as global context via the MessageBroker,
ServletContext and ServletConfig for the application.
Any, or all, of the properties exposed by this class may be null depending upon
the current execution context so test for that before attempting to interact with them.
| Method Summary | |
|---|---|
static FlexClient |
getFlexClient()
The FlexClient for the current request. |
static FlexSession |
getFlexSession()
The FlexSession for the current request. |
static javax.servlet.http.HttpServletRequest |
getHttpRequest()
The HttpServletResponse for the current request if the request is via HTTP. |
static javax.servlet.http.HttpServletResponse |
getHttpResponse()
The HttpServletResponse for the current request if the request is via HTTP. |
static javax.servlet.ServletConfig |
getServletConfig()
The ServletConfig for the current request, uses the last known ServletConfig when the request is not via HTTP. |
static javax.servlet.ServletContext |
getServletContext()
The ServletContext for the current web application. |
static javax.servlet.http.HttpServletRequest |
getTunnelHttpRequest()
The HttpServletRequest for the current request if it is transporting a tunneled protocol. |
static Principal |
getUserPrincipal()
Returns the principal associated with the session or client depending on whether perClientauthentication is being used. |
static boolean |
isMessageFromPeer()
Indicates whether the current message being processed came from a server peer in a cluster. |
static void |
setUserPrincipal(Principal userPrincipal)
Sets the Principal on either the current FlexClient or FlexSession depending upon whether perClientAuthentication is in use. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.servlet.http.HttpServletRequest getHttpRequest()
public static javax.servlet.http.HttpServletResponse getHttpResponse()
public static javax.servlet.http.HttpServletRequest getTunnelHttpRequest()
public static javax.servlet.ServletConfig getServletConfig()
public static javax.servlet.ServletContext getServletContext()
public static FlexClient getFlexClient()
public static FlexSession getFlexSession()
public static boolean isMessageFromPeer()
public static Principal getUserPrincipal()
public static void setUserPrincipal(Principal userPrincipal)
userPrincipal - The principal to associate with the FlexClient or FlexSession depending upon whether
perClientAuthentication is in use.
|
||||||||||
| 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/FlexContext.html