Class UrlRequestTransport

java.lang.Object
com.google.web.bindery.requestfactory.vm.testing.UrlRequestTransport
All Implemented Interfaces:
RequestTransport

public class UrlRequestTransport extends Object implements RequestTransport
A trivial implementation of RequestTransport that uses a HttpURLConnection. Details of the connection can be amended by overriding configureConnection(HttpURLConnection).

This implementation only supports http and https URLs. It has primitive support for recording and playing back cookies, but does not implement expiration processing.

Developers who wish to build a more production-ready client should consider using a RequestTRansport based around Apache HttpClient instead.