Pakket | mx.messaging.messages |
Klasse | public class HTTPRequestMessage |
Overerving | HTTPRequestMessage AbstractMessage Object |
Subklassen | SOAPMessage |
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
body : Object
The body of a message contains the specific data that needs to be
delivered to the remote destination. | AbstractMessage | ||
clientId : String
The clientId indicates which MessageAgent sent the message. | AbstractMessage | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
contentType : String
Indicates the content type of this message. | HTTPRequestMessage | ||
destination : String
The message destination. | AbstractMessage | ||
headers : Object
The headers of a message are an associative array where the key is the
header name and the value is the header value. | AbstractMessage | ||
httpHeaders : Object
Contains specific HTTP headers that should be placed on the request made
to the destination. | HTTPRequestMessage | ||
messageId : String
The unique id for the message. | AbstractMessage | ||
method : String
Indicates what method should be used for the request. | HTTPRequestMessage | ||
recordHeaders : Boolean
Only used when going through the proxy, should the proxy
send back the request and response headers it used. | HTTPRequestMessage | ||
timestamp : Number
Provides access to the time stamp for the message. | AbstractMessage | ||
timeToLive : Number
The time to live value of a message indicates how long the message
should be considered valid and deliverable. | AbstractMessage | ||
url : String
Contains the final destination for this request. | HTTPRequestMessage |
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructs an uninitialized HTTP request. | HTTPRequestMessage | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
Constante | Gedefinieerd door | ||
---|---|---|---|
CONTENT_TYPE_FORM : String = "application/x-www-form-urlencoded" [statisch]
Indicates that the content of this message is a form. | HTTPRequestMessage | ||
CONTENT_TYPE_SOAP_XML : String = "text/xml; charset=utf-8" [statisch]
Indicates that the content of this message is XML meant for a SOAP
request. | HTTPRequestMessage | ||
CONTENT_TYPE_XML : String = "application/xml" [statisch]
Indicates that the content of this message is XML. | HTTPRequestMessage | ||
DELETE_METHOD : String = "DELETE" [statisch]
Indicates that the method used for this request should be "delete". | HTTPRequestMessage | ||
GET_METHOD : String = "GET" [statisch]
Indicates that the method used for this request should be "get". | HTTPRequestMessage | ||
HEAD_METHOD : String = "HEAD" [statisch]
Indicates that the method used for this request should be "head". | HTTPRequestMessage | ||
OPTIONS_METHOD : String = "OPTIONS" [statisch]
Indicates that the method used for this request should be "options". | HTTPRequestMessage | ||
POST_METHOD : String = "POST" [statisch]
Indicates that the method used for this request should be "post". | HTTPRequestMessage | ||
PUT_METHOD : String = "PUT" [statisch]
Indicates that the method used for this request should be "put". | HTTPRequestMessage | ||
TRACE_METHOD : String = "TRACE" [statisch]
Indicates that the method used for this request should be "trace". | HTTPRequestMessage |
contentType | eigenschap |
public var contentType:String
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates the content type of this message. This value must be understood by the destination this request is sent to.
The following example sets the contentType
property:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.POST_METHOD; msg.url = "http://my.company.com/login";
httpHeaders | eigenschap |
public var httpHeaders:Object
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Contains specific HTTP headers that should be placed on the request made to the destination.
method | eigenschap |
method:String
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates what method should be used for the request. The only values allowed are:
HTTPRequestMessage.DELETE_METHOD
HTTPRequestMessage.GET_METHOD
HTTPRequestMessage.HEAD_METHOD
HTTPRequestMessage.POST_METHOD
HTTPRequestMessage.OPTIONS_METHOD
HTTPRequestMessage.PUT_METHOD
HTTPRequestMessage.TRACE_METHOD
The following example sets the method
property:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.POST_METHOD; msg.url = "http://my.company.com/login";
Implementatie
public function get method():String
public function set method(value:String):void
recordHeaders | eigenschap |
public var recordHeaders:Boolean
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Only used when going through the proxy, should the proxy send back the request and response headers it used. Defaults to false. Currently only set when using the NetworkMonitor.
url | eigenschap |
public var url:String
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Contains the final destination for this request.
This is the URL that the content of this message, found in the
body
property, will be sent to, using the method specified.
The following example sets the url
property:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.POST_METHOD; msg.url = "http://my.company.com/login";
HTTPRequestMessage | () | Constructor |
public function HTTPRequestMessage()
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Constructs an uninitialized HTTP request.
CONTENT_TYPE_FORM | Constante |
public static const CONTENT_TYPE_FORM:String = "application/x-www-form-urlencoded"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the content of this message is a form.
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.POST_METHOD; msg.url = "http://my.company.com/login";
CONTENT_TYPE_SOAP_XML | Constante |
public static const CONTENT_TYPE_SOAP_XML:String = "text/xml; charset=utf-8"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the content of this message is XML meant for a SOAP request.
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_SOAP_XML; msg.method = HTTPRequestMessage.POST_METHOD; msg.url = "http://my.company.com/login";
CONTENT_TYPE_XML | Constante |
public static const CONTENT_TYPE_XML:String = "application/xml"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the content of this message is XML.
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_XML; msg.method = HTTPRequestMessage.POST_METHOD; msg.url = "http://my.company.com/login";
DELETE_METHOD | Constante |
public static const DELETE_METHOD:String = "DELETE"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the method used for this request should be "delete".
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.DELETE_METHOD; msg.url = "http://my.company.com/login";
GET_METHOD | Constante |
public static const GET_METHOD:String = "GET"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the method used for this request should be "get".
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.GET_METHOD; msg.url = "http://my.company.com/login";
HEAD_METHOD | Constante |
public static const HEAD_METHOD:String = "HEAD"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the method used for this request should be "head".
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.HEAD_METHOD; msg.url = "http://my.company.com/login";
OPTIONS_METHOD | Constante |
public static const OPTIONS_METHOD:String = "OPTIONS"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the method used for this request should be "options".
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.OPTIONS_METHOD; msg.url = "http://my.company.com/login";
POST_METHOD | Constante |
public static const POST_METHOD:String = "POST"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the method used for this request should be "post".
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.POST_METHOD; msg.url = "http://my.company.com/login";
PUT_METHOD | Constante |
public static const PUT_METHOD:String = "PUT"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the method used for this request should be "put".
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.PUT_METHOD; msg.url = "http://my.company.com/login";
TRACE_METHOD | Constante |
public static const TRACE_METHOD:String = "TRACE"
Taalversie: | ActionScript 3.0 |
Productversies: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Indicates that the method used for this request should be "trace".
The following example uses this constant:
var msg:HTTPRequestMessage = new HTTPRequestMessage(); msg.contentType = HTTPRequestMessage.CONTENT_TYPE_FORM; msg.method = HTTPRequestMessage.TRACE_METHOD; msg.url = "http://my.company.com/login";
Wed Jun 13 2018, 11:42 AM Z