java.lang.Object
net.anwiba.commons.http.ConvertingHttpRequestExecutor
- All Implemented Interfaces:
AutoCloseable,IConvertingHttpRequestExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> Texecute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IApplicableHttpResponseExceptionFactory... exceptionFactories) <T> Texecute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IResultProducer<IOException> errorProducer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.anwiba.commons.http.IConvertingHttpRequestExecutor
execute
-
Constructor Details
-
ConvertingHttpRequestExecutor
-
-
Method Details
-
execute
public <T> T execute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IApplicableHttpResponseExceptionFactory... exceptionFactories) throws CanceledException, HttpRequestException, HttpResponseException, IOException - Specified by:
executein interfaceIConvertingHttpRequestExecutor- Throws:
CanceledExceptionHttpRequestExceptionHttpResponseExceptionIOException
-
execute
public <T> T execute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IResultProducer<IOException> errorProducer) throws CanceledException, HttpRequestException, HttpResponseException, IOException - Specified by:
executein interfaceIConvertingHttpRequestExecutor- Throws:
CanceledExceptionHttpRequestExceptionHttpResponseExceptionIOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIConvertingHttpRequestExecutor- Throws:
IOException
-