패키지 | 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:17 PM Z