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, setUser
public FailingRequestBuilder(Throwable cause, AsyncCallback<?> rpcCallback)
public Request send() throws RequestException
RequestBuilder
RequestBuilder.setRequestData(String)
and RequestBuilder.setCallback(RequestCallback)
before calling this method.send
in class RequestBuilder
Request
object that can be used to track the requestRequestException
- if the call fails to initiatepublic Request sendRequest(String requestData, RequestCallback callback) throws RequestException
RequestBuilder
requestData
or
callback
.sendRequest
in class RequestBuilder
requestData
- 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 requestRequestException
Copyright © 2018. All rights reserved.