|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DSProtocol>
com.smartgwt.client.types.DSProtocol
public enum DSProtocol
dataProtocol affects how the data in the DSRequest (data
is
sent
to the dataURL
. Note that, when using the SmartGWT server,
data
is automatically translated from JavaScript to Java according to the rules described
here
; dataProtocol does not apply.
Enum Constant Summary | |
---|---|
CLIENTCUSTOM
This setting entirely bypasses the SmartGWT comm system. |
|
GETPARAMS
Data is added to the dataURL, with each property in the data becoming an HTTP parameter, eg http://service.com/search?keyword=foo |
|
POSTMESSAGE
dsRequest.data is assumed to be a String set up by DataSource.transformRequest(com.smartgwt.client.data.DSRequest)
and is POST'd as the HTTP request body. |
|
POSTPARAMS
Data is POST'd to the dataURL, with each property becoming an HTTP parameter, exactly as an HTML form would submit them if it had one input field per property in the data. |
|
POSTXML
Data is serialized as XML via DataSource.xmlSerialize(com.google.gwt.core.client.JavaScriptObject) and POST'd as the
HTTP request body with contentType text/xml |
|
SOAP
Data is serialized as XML via DataSource.xmlSerialize(com.google.gwt.core.client.JavaScriptObject) , wrapped in a
SOAP
envelope, and POST'd as the HTTP request body with contentType "text/xml". |
Method Summary | |
---|---|
String |
getValue()
|
static DSProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DSProtocol[] |
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 DSProtocol GETPARAMS
public static final DSProtocol POSTPARAMS
public static final DSProtocol POSTXML
DataSource.xmlSerialize(com.google.gwt.core.client.JavaScriptObject)
and POST'd as the
HTTP request body with contentType text/xml
public static final DSProtocol CLIENTCUSTOM
DataSource.transformRequest(com.smartgwt.client.data.DSRequest)
to perform their own custom data manipulation logic,
and then call DataSource.processResponse(String, com.smartgwt.client.data.DSResponse)
to handle the results of this action.
The user must populate dsRequest.data in the transformRequest method. If call was successful status and data should be filled.
If call was unsuccessful only status should contain error code.
public static final DSProtocol SOAP
DataSource.xmlSerialize(com.google.gwt.core.client.JavaScriptObject)
, wrapped in a
SOAP
envelope, and POST'd as the HTTP request body with contentType "text/xml". Generally
only used
in connection with a 'WSDL web service'
.
public static final DSProtocol POSTMESSAGE
DataSource.transformRequest(com.smartgwt.client.data.DSRequest)
and is POST'd as the HTTP request body.
Method Detail |
---|
public static DSProtocol[] values()
for (DSProtocol c : DSProtocol.values()) System.out.println(c);
public static DSProtocol valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getValue()
getValue
in interface ValueEnum
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |