Interface Request<T>
-
- Type Parameters:
T
- The return type of objects in the corresponding response.
- All Known Implementing Classes:
FakeRequest
public interface Request<T>
A Request represents a single method invocation on the server. It encapsulates the arguments provided to the Request factory method declared in a RequestContext as well as a set of object paths to return from the server. The returned data is provided to an optionalReceiver
object, specified by theto(Receiver)
method.- See Also:
FakeRequest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fire()
Submit this request.void
fire(Receiver<? super T> receiver)
Convenience method equivalent to callingto(...).fire()
.RequestContext
getRequestContext()
Returns the RequestContext associated with the Request.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 callingto(...).fire()
.- Parameters:
receiver
- aReceiver
instance
-
getRequestContext
RequestContext getRequestContext()
Returns the RequestContext associated with the Request.
-
to
RequestContext to(Receiver<? super T> receiver)
Specify the object that will receive the result of the method invocation.- Parameters:
receiver
- aReceiver
instance- Returns:
- a
RequestContext
instance
-
-