public abstract class

AbstractRequest

extends Object
implements InstanceRequest<P extends BaseProxy, T> Request<T>
java.lang.Object
   ↳ com.google.gwt.requestfactory.shared.impl.AbstractRequest<T>

Class Overview

Abstract implementation of Request. Each request stores a DeltaValueStoreJsonImpl.

Summary

Fields
protected final Set<String> propertyRefs Used by generated subtypes.
protected final AbstractRequestContext requestContext
Protected Constructors
AbstractRequest(AbstractRequestContext requestContext)
Public Methods
void fire()
Submit this request.
void fire(Receiver<? super T> receiver)
Convenience method equivalent to calling to(...).fire().
Set<String> getPropertyRefs()
Returns the properties.
RequestData getRequestData()
RequestContext to(Receiver<? super T> receiver)
Specify the object that will receive the result of the method invocation.
Request<T> using(BaseProxy instanceObject)
This method comes from the InstanceRequest interface.
Request<T> with(String... propertyRefs)
Request additional reference properties to fetch with the return value.
Protected Methods
abstract RequestData makeRequestData()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.requestfactory.shared.InstanceRequest
From interface com.google.gwt.requestfactory.shared.Request

Fields

protected final Set<String> propertyRefs

Used by generated subtypes.

protected final AbstractRequestContext requestContext

Protected Constructors

protected AbstractRequest (AbstractRequestContext requestContext)

Public Methods

public void fire ()

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

public void fire (Receiver<? super T> receiver)

Convenience method equivalent to calling to(...).fire().

Parameters
receiver a Receiver instance

public Set<String> getPropertyRefs ()

Returns the properties.

public RequestData getRequestData ()

public RequestContext to (Receiver<? super T> receiver)

Specify the object that will receive the result of the method invocation.

Parameters
receiver a Receiver instance
Returns

public Request<T> using (BaseProxy instanceObject)

This method comes from the InstanceRequest interface. Instance methods place the instance in the first parameter slot.

public Request<T> with (String... propertyRefs)

Request additional reference properties to fetch with the return value.

Parameters
propertyRefs a list of reference property names as Strings
Returns

Protected Methods

protected abstract RequestData makeRequestData ()