public class

InProcessRequestTransport

extends Object
implements RequestTransport
java.lang.Object
   ↳ com.google.gwt.requestfactory.server.testing.InProcessRequestTransport

Class Overview

A RequesTransports that calls a SimpleRequestProcessor. This test can be used for end-to-end tests of RequestFactory service methods in non-GWT test suites.

 ServiceLayer serviceLayer = ServiceLayer.create();
 SimpleRequestProcessor processor = new SimpleRequestProcessor(serviceLayer);
 EventBus eventBus = new SimpleEventBus();
 MyRequestFactory f = RequestFactoryMagic.create(MyRequestFactory.class);
 f.initialize(eventBus, new InProcessRequestTransport(processor));
 

Summary

Public Constructors
InProcessRequestTransport(SimpleRequestProcessor processor)
Public Methods
void send(String payload, RequestTransport.TransportReceiver receiver)
Called by the RequestFactory implementation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.requestfactory.shared.RequestTransport

Public Constructors

public InProcessRequestTransport (SimpleRequestProcessor processor)

Public Methods

public void send (String payload, RequestTransport.TransportReceiver receiver)

Called by the RequestFactory implementation.

Parameters
payload the String payload
receiver a TransportReceiver instance