Accessing Request/Response Data With Remoteobject - Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual

Migrating applications to flex 2
Table of Contents

Advertisement

Accessing request/response data with
RemoteObject
A Java object that you call using the
and servlet data. For Flex 1.5, from within a Java object, you can call the following methods:
Method
flashgateway.Gateway.getHttpRequest()
flashgateway.Gateway.getHttpResponse()
flashgateway.Gateway.getServletConfig()
In Flex 2, this API no longer exists. The flex.messaging.FlexContext class provides equivalent
methods. Flex Data Services provides enhancements for working with session data in the
following classes:
flex.messaging.FlexContext
flex.messaging.FlexSession
flex.messaging.FlexSessionListener
flex.messaging.FlexSessionAttributeListener
flex.messaging.FlexSessionBindingEvent
flex.messaging.FlexSessionBindingListener
These classes are included in the the public
information, see Chapter 43, "Configuring Data Services," in the Flex 2 Developer's Guide.
152
Data Services
<mx:RemoteObject>
Description
Returns the HttpServletRequest object for the
current request. Adobe recommends that you
access session data and other request data
through the
getHttpRequest()
Returns the HttpServletResponse object for the
current request.
Returns the ServletConfig object for the calling
servlet.
Flex Data Services Javadoc
tag has access to request, response,
method.
documentation. For

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents