MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuale Utente Pagina 152

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 184
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 151
152 Data Services
Accessing request/response data with
RemoteObject
A Java object that you call using the <mx:RemoteObject> tag has access to request, response,
and servlet data. For Flex 1.5, from within a Java object, you can call the following methods:
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 Flex Data Services Javadoc documentation. For
information, see Chapter 43, “Configuring Data Services,” in the Flex 2 Developer’s Guide.
Method Description
flashgateway.Gateway.getHttpRequest()
Returns the HttpServletRequest object for the
current request. Adobe recommends that you
access session data and other request data
through the
getHttpRequest() method.
flashgateway.Gateway.getHttpResponse()
Returns the HttpServletResponse object for the
current request.
flashgateway.Gateway.getServletConfig()
Returns the ServletConfig object for the calling
servlet.
Vedere la pagina 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 183 184

Commenti su questo manuale

Nessun commento