com.maryanovsky.gwtutils.client.net
Class HttpTextRequestMaker

java.lang.Object
  extended by com.maryanovsky.gwtutils.client.net.HttpTextRequestMaker
All Implemented Interfaces:
RequestMaker<String>

public class HttpTextRequestMaker
extends Object
implements RequestMaker<String>

An implementation of RequestMaker<String> that uses a RequestBuilder to make the request.

Author:
Maryanovsky Alexander

Constructor Summary
HttpTextRequestMaker(RequestBuilder requestBuilder)
          Creates a new HttpTextRequestMaker which will send the request using the specified RequestBuilder.
 
Method Summary
 String getUrl()
          Returns the URL of the requested resource.
 void sendRequest(ResultCallback<String> callback)
          Sends the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpTextRequestMaker

public HttpTextRequestMaker(RequestBuilder requestBuilder)
Creates a new HttpTextRequestMaker which will send the request using the specified RequestBuilder.

Method Detail

sendRequest

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

Specified by:
sendRequest in interface RequestMaker<String>
Throws:
RequestException

getUrl

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

Specified by:
getUrl in interface RequestMaker<String>