Package net.anwiba.commons.http
Class ConvertingHttpRequestExecutor
- java.lang.Object
-
- net.anwiba.commons.http.ConvertingHttpRequestExecutor
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IConvertingHttpRequestExecutor
public class ConvertingHttpRequestExecutor extends java.lang.Object implements IConvertingHttpRequestExecutor
-
-
Constructor Summary
Constructors Constructor Description ConvertingHttpRequestExecutor(IHttpRequestExecutor httpRequestExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T> Texecute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IApplicableHttpResponseExceptionFactory... exceptionFactories)<T> Texecute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IResultProducer<java.io.IOException> errorProducer)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.anwiba.commons.http.IConvertingHttpRequestExecutor
execute
-
-
-
-
Constructor Detail
-
ConvertingHttpRequestExecutor
public ConvertingHttpRequestExecutor(IHttpRequestExecutor httpRequestExecutor)
-
-
Method Detail
-
execute
public <T> T execute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IApplicableHttpResponseExceptionFactory... exceptionFactories) throws CanceledException, HttpServerException, HttpRequestException, java.io.IOException
- Specified by:
executein interfaceIConvertingHttpRequestExecutor- Throws:
CanceledExceptionHttpServerExceptionHttpRequestExceptionjava.io.IOException
-
execute
public <T> T execute(ICanceler cancelable, IRequest request, IApplicableResultProducer<T> resultProducer, IResultProducer<java.io.IOException> errorProducer) throws CanceledException, HttpServerException, HttpRequestException, java.io.IOException
- Specified by:
executein interfaceIConvertingHttpRequestExecutor- Throws:
CanceledExceptionHttpServerExceptionHttpRequestExceptionjava.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceIConvertingHttpRequestExecutor- Throws:
java.io.IOException
-
-