|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectjava.lang.Enum<XMLHttpRequest.ResponseType>
com.google.gwt.xhr.client.XMLHttpRequest.ResponseType
public static enum XMLHttpRequest.ResponseType
The type of response expected from the XHR.
| Enum Constant Summary | |
|---|---|
ArrayBuffer
The default response type -- use XMLHttpRequest.getResponseArrayBuffer() for the return value. |
|
Default
The default response type -- use XMLHttpRequest.getResponseText()
for the return value. |
|
| Method Summary | |
|---|---|
java.lang.String |
getResponseTypeString()
|
static XMLHttpRequest.ResponseType |
valueOf(java.lang.String name)
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final XMLHttpRequest.ResponseType Default
XMLHttpRequest.getResponseText()
for the return value.
public static final XMLHttpRequest.ResponseType ArrayBuffer
XMLHttpRequest.getResponseArrayBuffer() for the return value.
This value may only be used if
TypedArrays.isSupported()
returns true.
| Method Detail |
|---|
public static XMLHttpRequest.ResponseType[] values()
for (XMLHttpRequest.ResponseType c : XMLHttpRequest.ResponseType.values()) System.out.println(c);
public static XMLHttpRequest.ResponseType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getResponseTypeString()
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||