套件 | mx.messaging.messages |
類別 | public class HTTPRequestMessage |
繼承 | HTTPRequestMessage AbstractMessage Object |
子類別 | SOAPMessage |
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
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
類別物件的參照或是特定物件實體的建構函數。 | 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 |
方法 | 定義自 | ||
---|---|---|---|
Constructs an uninitialized HTTP request. | HTTPRequestMessage | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
Returns a string representation of the message. | AbstractMessage | ||
會傳回指定之物件的基本值。 | Object |
常數 | 定義自 | ||
---|---|---|---|
CONTENT_TYPE_FORM : String = "application/x-www-form-urlencoded" [靜態]
Indicates that the content of this message is a form. | HTTPRequestMessage | ||
CONTENT_TYPE_SOAP_XML : String = "text/xml; charset=utf-8" [靜態]
Indicates that the content of this message is XML meant for a SOAP
request. | HTTPRequestMessage | ||
CONTENT_TYPE_XML : String = "application/xml" [靜態]
Indicates that the content of this message is XML. | HTTPRequestMessage | ||
DELETE_METHOD : String = "DELETE" [靜態]
Indicates that the method used for this request should be "delete". | HTTPRequestMessage | ||
GET_METHOD : String = "GET" [靜態]
Indicates that the method used for this request should be "get". | HTTPRequestMessage | ||
HEAD_METHOD : String = "HEAD" [靜態]
Indicates that the method used for this request should be "head". | HTTPRequestMessage | ||
OPTIONS_METHOD : String = "OPTIONS" [靜態]
Indicates that the method used for this request should be "options". | HTTPRequestMessage | ||
POST_METHOD : String = "POST" [靜態]
Indicates that the method used for this request should be "post". | HTTPRequestMessage | ||
PUT_METHOD : String = "PUT" [靜態]
Indicates that the method used for this request should be "put". | HTTPRequestMessage | ||
TRACE_METHOD : String = "TRACE" [靜態]
Indicates that the method used for this request should be "trace". | HTTPRequestMessage |
contentType | 屬性 |
public var contentType:String
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 屬性 |
public var httpHeaders:Object
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Contains specific HTTP headers that should be placed on the request made to the destination.
method | 屬性 |
method:String
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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";
實作
public function get method():String
public function set method(value:String):void
recordHeaders | 屬性 |
public var recordHeaders:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 屬性 |
public var url:String
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | () | 建構函式 |
public function HTTPRequestMessage()
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructs an uninitialized HTTP request.
CONTENT_TYPE_FORM | 常數 |
public static const CONTENT_TYPE_FORM:String = "application/x-www-form-urlencoded"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const CONTENT_TYPE_SOAP_XML:String = "text/xml; charset=utf-8"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const CONTENT_TYPE_XML:String = "application/xml"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const DELETE_METHOD:String = "DELETE"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const GET_METHOD:String = "GET"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const HEAD_METHOD:String = "HEAD"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const OPTIONS_METHOD:String = "OPTIONS"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const POST_METHOD:String = "POST"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const PUT_METHOD:String = "PUT"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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 | 常數 |
public static const TRACE_METHOD:String = "TRACE"
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | 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, 03:47 PM Z