public class RemoteFunctionObject extends RemoteFunction
RemoteFunction that is intended to call remote functions that return single
objects in the form of a GluonObservableObject.| Modifier and Type | Method | Description |
|---|---|---|
<T> com.gluonhq.connect.GluonObservableObject<T> |
call(com.gluonhq.connect.converter.InputStreamInputConverter<T> converter) |
Triggers a call to the remote function and returns a GluonObservableObject that contains the retrieved object.
|
<T> com.gluonhq.connect.GluonObservableObject<T> |
call(java.lang.Class<T> objectClass) |
Triggers a call to the remote function and returns a GluonObservableObject that contains the retrieved object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearCache, getFunctionName, getParams, getRawBody, isCachingEnabled, setRawBodypublic <T> com.gluonhq.connect.GluonObservableObject<T> call(java.lang.Class<T> objectClass)
objectClass based on the response of
the remote function call will be determined automatically. Use call(InputStreamInputConverter) to
specify a custom converter that can handle the response of the remote function.T - the type of the object that is retrievedobjectClass - the class of the object to retrievepublic <T> com.gluonhq.connect.GluonObservableObject<T> call(com.gluonhq.connect.converter.InputStreamInputConverter<T> converter)
converter.T - the type of the object that is retrievedconverter - the converter to use for transforming the response of the remote function into an object