GWT 2.3.0

com.google.web.bindery.requestfactory.shared
Interface Request<T>

Type Parameters:
T - The return type of objects in the corresponding response.

public interface Request<T>

Implemented by the request objects created by this factory.


Method Summary
 void fire()
          Submit this request.
 void fire(Receiver<? super T> receiver)
          Convenience method equivalent to calling to(...).fire().
 RequestContext to(Receiver<? super T> receiver)
          Specify the object that will receive the result of the method invocation.
 Request<T> with(java.lang.String... propertyRefs)
          Request additional reference properties to fetch with the return value.
 

Method Detail

fire

void fire()
Submit this request. Failures will be reported through the global uncaught exception handler, if any.


fire

void fire(Receiver<? super T> receiver)
Convenience method equivalent to calling to(...).fire().

Parameters:
receiver - a Receiver instance

to

RequestContext to(Receiver<? super T> receiver)
Specify the object that will receive the result of the method invocation.

Parameters:
receiver - a Receiver instance
Returns:
a RequestContext instance

with

Request<T> with(java.lang.String... propertyRefs)
Request additional reference properties to fetch with the return value.

Parameters:
propertyRefs - a list of reference property names as Strings
Returns:
a Request instance of type T

GWT 2.3.0