Package com.google.gwt.xhr.client
Enum XMLHttpRequest.ResponseType
- All Implemented Interfaces:
Serializable
,Comparable<XMLHttpRequest.ResponseType>
,java.lang.constant.Constable
- Enclosing class:
XMLHttpRequest
The type of response expected from the XHR.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe default response type -- useXMLHttpRequest.getResponseArrayBuffer()
for the return value.The default response type -- useXMLHttpRequest.getResponseText()
for the return value. -
Method Summary
Modifier and TypeMethodDescriptionstatic XMLHttpRequest.ResponseType
Returns the enum constant of this type with the specified name.static XMLHttpRequest.ResponseType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Default
The default response type -- useXMLHttpRequest.getResponseText()
for the return value. -
ArrayBuffer
The default response type -- useXMLHttpRequest.getResponseArrayBuffer()
for the return value. This value may only be used ifTypedArrays.isSupported()
returns true.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getResponseTypeString
-