|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RPCTransport>
com.smartgwt.client.types.RPCTransport
public enum RPCTransport
SmartClient supports multiple RPC transports for maximum compatibility and feature richness.
All of transports
use HTTP as the underlying protocol, but use different mechanisms for
sending the HTTP request and processing
the response. The transport is typically
auto-selected for by based on the feature being used and the current
browser settings. For
advanced use cases, transport
and
${isc.DocUtils.linkForRef('classAttr:RPCManager.defaultTransport')} are
exposed as override points.
Enum Constant Summary | |
---|---|
HIDDENFRAME
Available with SmartClient Server only. |
|
SCRIPTINCLUDE
Write a SCRIPT tag into the DOM with a SRC attribute that targets an arbitrary URL. |
|
XMLHTTPREQUEST
Uses the XMLHttpRequest object to make the request to the server. |
Method Summary | |
---|---|
String |
getValue()
|
static RPCTransport |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RPCTransport[] |
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 RPCTransport XMLHTTPREQUEST
PlatformDependencies
for more information. This transport is
not useful with file uploads. Cannot be used to target
cross-domain URLs directly.
public static final RPCTransport SCRIPTINCLUDE
For ${isc.DocUtils.linkForRef('attr:RPCRequest.callback')}
to work, the server being contacted must support the ability
to generate JavaScript code in the response
that will call a JavaScript function generated
by SmartClient. SmartClient passes the name of the function
to call via a URL parameter,
which can be controlled with callbackParam
.
public static final RPCTransport HIDDENFRAME
If using
the SmartClient Server and using
'Server-side dat integration')
,
the "hiddenFrame" transport
is automatically used for all RPCManager and DataSource requests
if the "xmlHttpRequest"
transport is not available.
Cannot be used to target cross-domain URLs directly.
Method Detail |
---|
public static RPCTransport[] values()
for (RPCTransport c : RPCTransport.values()) System.out.println(c);
public static RPCTransport 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 |