Class Overview
A ClientOracle that is used for hosted-mode clients. This type only
implements a limited subset of the ClientOracle functionality.
Summary
[Expand]
Inherited Methods |
From class
com.google.gwt.rpc.server.ClientOracle
abstract
CommandSink
|
createCommandSink(OutputStream out)
Create a CommandSink that can encode a payload for the client.
|
abstract
String
|
createUnusedIdent(String ident)
Returns an identifier that does not conflict with any symbols defined in
the client.
|
abstract
CastableTypeData
|
getCastableTypeData(Class<?> clazz)
Returns the Json castableType data for a given type.
|
abstract
String
|
getFieldId(Class<?> clazz, String fieldName)
Given a base type and the unobfuscated field name, find the obfuscated name
for the field in the client.
|
abstract
String
|
getFieldId(Enum<?> value)
Return the field name for a given enum value.
|
abstract
String
|
getFieldId(String className, String fieldName)
|
abstract
Pair<Class<?>, String>
|
getFieldName(Class<?> clazz, String fieldId)
Return the name of a field from a client-side id.
|
abstract
String
|
getMethodId(String className, String methodName, String... jsniArgTypes)
This is similar to #getMethodId(Class, String, Class...) but does
not search supertypes.
|
abstract
String
|
getMethodId(Class<?> clazz, String methodName, Class...<?> args)
Returns the name of the top-level function which implements the named
method that takes the exact arguments specified.
|
abstract
Field[]
|
getOperableFields(Class<?> clazz)
Returns the fields of a given class that should be serialized.
|
abstract
int
|
getQueryId(Class<?> clazz)
Returns the assigned castability queryId of a given type.
|
abstract
String
|
getSeedName(Class<?> clazz)
Returns the name of the top-level function that is used as the seed
function for a given type.
|
abstract
String
|
getTypeName(String seedName)
Returns the deobfuscated name of a type based on the name of the type's
seed function.
|
abstract
boolean
|
isScript()
Indicates whether or not the remote client is running as compiled script.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
HostedModeClientOracle
()
Public Methods
Create a CommandSink that can encode a payload for the client.
Parameters
out
| the OutputStream to which the output will be written |
Returns the Json castableType data for a given type.
Return the name of a field from a client-side id. This will search
superclasses for the first instance of the named field.
Returns
- The field's declaring class and the name of the field
public
Field[]
getOperableFields
(Class<?> clazz)
Falls back to reflectively analyzing the provided class.
public
int
getQueryId
(Class<?> clazz)
public
boolean
isScript
()