Pakiet | mx.messaging.messages |
Klasa | public class HTTPRequestMessage |
Dziedziczenie | HTTPRequestMessage AbstractMessage Object |
Podklasy | SOAPMessage |
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
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
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | 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 |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
Constructs an uninitialized HTTP request. | HTTPRequestMessage | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | ||
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | ||
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | ||
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | ||
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object |
Stała | Zdefiniowane przez | ||
---|---|---|---|
CONTENT_TYPE_FORM : String = "application/x-www-form-urlencoded" [statyczny]
Indicates that the content of this message is a form. | HTTPRequestMessage | ||
CONTENT_TYPE_SOAP_XML : String = "text/xml; charset=utf-8" [statyczny]
Indicates that the content of this message is XML meant for a SOAP
request. | HTTPRequestMessage | ||
CONTENT_TYPE_XML : String = "application/xml" [statyczny]
Indicates that the content of this message is XML. | HTTPRequestMessage | ||
DELETE_METHOD : String = "DELETE" [statyczny]
Indicates that the method used for this request should be "delete". | HTTPRequestMessage | ||
GET_METHOD : String = "GET" [statyczny]
Indicates that the method used for this request should be "get". | HTTPRequestMessage | ||
HEAD_METHOD : String = "HEAD" [statyczny]
Indicates that the method used for this request should be "head". | HTTPRequestMessage | ||
OPTIONS_METHOD : String = "OPTIONS" [statyczny]
Indicates that the method used for this request should be "options". | HTTPRequestMessage | ||
POST_METHOD : String = "POST" [statyczny]
Indicates that the method used for this request should be "post". | HTTPRequestMessage | ||
PUT_METHOD : String = "PUT" [statyczny]
Indicates that the method used for this request should be "put". | HTTPRequestMessage | ||
TRACE_METHOD : String = "TRACE" [statyczny]
Indicates that the method used for this request should be "trace". | HTTPRequestMessage |
contentType | właściwość |
public var contentType:String
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | właściwość |
public var httpHeaders:Object
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Contains specific HTTP headers that should be placed on the request made to the destination.
method | właściwość |
method:String
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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";
Implementacja
public function get method():String
public function set method(value:String):void
recordHeaders | właściwość |
public var recordHeaders:Boolean
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | właściwość |
public var url:String
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | () | Konstruktor |
public function HTTPRequestMessage()
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructs an uninitialized HTTP request.
CONTENT_TYPE_FORM | Stała |
public static const CONTENT_TYPE_FORM:String = "application/x-www-form-urlencoded"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const CONTENT_TYPE_SOAP_XML:String = "text/xml; charset=utf-8"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const CONTENT_TYPE_XML:String = "application/xml"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const DELETE_METHOD:String = "DELETE"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const GET_METHOD:String = "GET"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const HEAD_METHOD:String = "HEAD"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const OPTIONS_METHOD:String = "OPTIONS"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const POST_METHOD:String = "POST"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const PUT_METHOD:String = "PUT"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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 | Stała |
public static const TRACE_METHOD:String = "TRACE"
Wersja języka: | ActionScript 3.0 |
Wersje produktu: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
Wersje środowiska wykonawczego: | 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";
Tue Jun 12 2018, 12:06 PM Z