com.maryanovsky.gwtutils.client.net
Interface RequestMaker<T>

All Known Implementing Classes:
HttpTextRequestMaker, JsonpTextRequestMaker

public interface RequestMaker<T>

A common interface for builders of requests.

Author:
Maryanovsky Alexander

Method Summary
 String getUrl()
          Returns the URL of the requested resource.
 void sendRequest(ResultCallback<T> callback)
          Sends the request.
 

Method Detail

sendRequest

void sendRequest(ResultCallback<T> callback)
                 throws RequestException
Sends the request. The response will be delivered to the specified callback.

Throws:
RequestException

getUrl

String getUrl()
Returns the URL of the requested resource.