public interface IHttpProvider
| Modifier and Type | Method and Description |
|---|---|
ISerializer |
getSerializer()
Get the serializer for this http provider.
|
<Result,BodyType> |
send(IHttpRequest request,
java.lang.Class<Result> resultClass,
BodyType serializable)
Sends the http request.
|
<Result,BodyType,DeserializeType> |
send(IHttpRequest request,
java.lang.Class<Result> resultClass,
BodyType serializable,
IStatefulResponseHandler<Result,DeserializeType> handler)
Sends the http request.
|
<Result,BodyType> |
send(IHttpRequest request,
ICallback<Result> callback,
java.lang.Class<Result> resultClass,
BodyType serializable)
Sends the http request asynchronously.
|
ISerializer getSerializer()
<Result,BodyType> void send(IHttpRequest request, ICallback<Result> callback, java.lang.Class<Result> resultClass, BodyType serializable)
Result - The type of the response object.BodyType - The type of the object to send to the service in the body of the request.request - The request description.callback - The callback to be called after success or failure.resultClass - The class of the response from the service.serializable - The object to send to the service in the body of the request.<Result,BodyType> Result send(IHttpRequest request, java.lang.Class<Result> resultClass, BodyType serializable) throws ClientException
Result - The type of the response object.BodyType - The type of the object to send to the service in the body of the request.request - The request description.resultClass - The class of the response from the service.serializable - The object to send to the service in the body of the request.ClientException - This exception occurs if the request was unable to complete for any reason.<Result,BodyType,DeserializeType> Result send(IHttpRequest request, java.lang.Class<Result> resultClass, BodyType serializable, IStatefulResponseHandler<Result,DeserializeType> handler) throws ClientException
Result - The expected return type return.BodyType - The type of the object to send to the service in the body of the request.DeserializeType - The type of the http response object.request - The request description.resultClass - The class of the response from the service.serializable - The object to send to the service in the body of the request.handler - The handler for stateful response.ClientException - This exception occurs if the request was unable to complete for any reason.