flex.messaging
Class FlexContext

java.lang.Object
  extended byflex.messaging.FlexContext

public class FlexContext
extends Object

The FlexContext class is a utility class that holds the FlexSession, HttpServletRequest, HttpServletResponse and ServletConfig for the current thread (request).


Method Summary
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 boolean isMessageFromPeer()
          Indicates whether the current message being processed came from a server peer in a cluster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHttpRequest

public static javax.servlet.http.HttpServletRequest getHttpRequest()
The HttpServletResponse for the current request if the request is via HTTP. Returns null if the using an non-HTTP channel. Available for users.


getHttpResponse

public static javax.servlet.http.HttpServletResponse getHttpResponse()
The HttpServletResponse for the current request if the request is via HTTP. Returns null if the using an non-HTTP channel. Available for users.


getServletConfig

public static javax.servlet.ServletConfig getServletConfig()
The ServletConfig for the current request, uses the last known ServletConfig when the request is not via HTTP. Available for users.


getServletContext

public static javax.servlet.ServletContext getServletContext()
The ServletContext for the current web application.


getFlexSession

public static FlexSession getFlexSession()
The FlexSession for the current request. Available for users.


isMessageFromPeer

public static boolean isMessageFromPeer()
Indicates whether the current message being processed came from a server peer in a cluster.



Copyright © 2006 Adobe Systems Inc. All Rights Reserved. (Updated August 2, 2006)

Take a survey