
public class FailingRequestBuilder extends RequestBuilder
RequestBuilder that always immediately fails.RequestBuilder.Method| Constructor and Description |
|---|
FailingRequestBuilder(Throwable cause,
AsyncCallback<?> rpcCallback) |
| Modifier and Type | Method and Description |
|---|---|
Request |
send()
Sends an HTTP request based on the current builder configuration.
|
Request |
sendRequest(String requestData,
RequestCallback callback)
Sends an HTTP request based on the current builder configuration with the
specified data and callback.
|
getCallback, getHeader, getHTTPMethod, getPassword, getRequestData, getTimeoutMillis, getUrl, getUser, setCallback, setHeader, setIncludeCredentials, setPassword, setRequestData, setTimeoutMillis, setUserpublic FailingRequestBuilder(Throwable cause, AsyncCallback<?> rpcCallback)
public Request send() throws RequestException
RequestBuilderRequestBuilder.setRequestData(String) and RequestBuilder.setCallback(RequestCallback)
before calling this method.send in class RequestBuilderRequest object that can be used to track the requestRequestException - if the call fails to initiatepublic Request sendRequest(String requestData, RequestCallback callback) throws RequestException
RequestBuilderrequestData or
callback.sendRequest in class RequestBuilderrequestData - the data to send as part of the requestcallback - the response handler to be notified when the request fails
or completesRequest object that can be used to track the requestRequestExceptionCopyright © 2018. All rights reserved.