ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
mx.messaging.messages 

HTTPRequestMessage  - AS3 BlazeDS LCDS

Pakietmx.messaging.messages
Klasapublic class HTTPRequestMessage
DziedziczenieHTTPRequestMessage Inheritance AbstractMessage Inheritance 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

HTTP requests are sent to the HTTP endpoint using this message type. An HTTPRequestMessage encapsulates content and header information normally found in HTTP requests made by a browser.



Właściwości publiczne
 WłaściwośćZdefiniowane przez
 Inheritedbody : Object
The body of a message contains the specific data that needs to be delivered to the remote destination.
AbstractMessage
 InheritedclientId : String
The clientId indicates which MessageAgent sent the message.
AbstractMessage
 Inheritedconstructor : 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
 Inheriteddestination : String
The message destination.
AbstractMessage
 Inheritedheaders : 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
 InheritedmessageId : 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
 Inheritedtimestamp : Number
Provides access to the time stamp for the message.
AbstractMessage
 InheritedtimeToLive : 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
Metody publiczne
 MetodaZdefiniowane przez
  
Constructs an uninitialized HTTP request.
HTTPRequestMessage
 Inherited
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość.
Object
 Inherited
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr.
Object
 Inherited
Wskazuje, czy określona właściwość istnieje i jest przeliczalna.
Object
 Inherited
Ustawia dostępność właściwości dynamicznej używanej w pętlach.
Object
 Inherited
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych.
Object
 Inherited
Returns a string representation of the message.
AbstractMessage
 Inherited
Zwraca pierwotną wartość dla określonego obiektu.
Object
Stałe publiczne
 StałaZdefiniowane 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
Szczegół właściwości

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";
        

Konstruktor Szczegół

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.

Szczegół stałej

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";
        





[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.