|
|||||||||
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 | |
---|---|
java.lang.String |
getValue()
|
static DSProtocol |
valueOf(java.lang.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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, 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
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 final DSProtocol[] values()
for(DSProtocol c : DSProtocol.values()) System.out.println(c);
public static DSProtocol 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 namepublic java.lang.String getValue()
getValue
in interface ValueEnum
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |