Packagecom.amazonaws
Classpublic final class ProtocolEnum
InheritanceProtocolEnum Inheritance Object

Language Version : ActionScript 3.0
Product Version : Flex 4
Since : January 24. 2011
Runtime Versions : Flash Player 10.1, AIR 2.5

Represents the communication protocol to use when sending requests to AWS. Communication over HTTPS is the default, and is more secure than HTTP, which is why AWS recommends using HTTPS. HTTPS connections can use more system resources because of the extra work to encrypt network traffic, so the option to use HTTP is available in case users need it.



Public Methods
 MethodDefined By
  
toString():String
Returns the Protocol attribute.
ProtocolEnum
  
valueOf(name:String):ProtocolEnum
[static] Returns the enum constant of this type with the specified name.
ProtocolEnum
  
values():Array
[static] Returns an array containing the constants of this enum type, in the order they are declared.
ProtocolEnum
Public Constants
 ConstantDefined By
  HTTP : ProtocolEnum
[static] HTTP Protocol - Using the HTTP protocol is less secure than HTTPS, but can slightly reduce the system resources used when communicating with AWS.
ProtocolEnum
  HTTPS : ProtocolEnum
[static] HTTPS Protocol - Using the HTTPS protocol is more secure than using the HTTP protocol, but may use slightly more system resources.
ProtocolEnum
Method Detail
toString()method
public function toString():String

Returns the Protocol attribute.

Returns
String — The name of this attribute.
valueOf()method 
public static function valueOf(name:String):ProtocolEnum

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters

name:String — the name of the enum constant to be returned.

Returns
ProtocolEnum — the enum constant with the specified name

Throws
TypeError — if the argument is null
 
ArgumentError — if this enum type has no constant with the specified name
values()method 
public static function values():Array

Returns an array containing the constants of this enum type, in the order they are declared.

Returns
Array

Example
This function may be used to iterate over the constants as follows:
           for each (var protocol:ProtocolEnum in ProtocolEnum.values()) {
                     // do something with protocol object...
               
           }
         

Constant Detail
HTTPConstant
public static const HTTP:ProtocolEnum

HTTP Protocol - Using the HTTP protocol is less secure than HTTPS, but can slightly reduce the system resources used when communicating with AWS.

HTTPSConstant 
public static const HTTPS:ProtocolEnum

HTTPS Protocol - Using the HTTPS protocol is more secure than using the HTTP protocol, but may use slightly more system resources.