Package org.dmfs.httpessentials.client
Interface HttpRequestExecutor
public interface HttpRequestExecutor
The interface of an instance that knows how to execute an
HttpRequest.-
Method Summary
Modifier and TypeMethodDescription<T> Texecute(URI uri, HttpRequest<T> request) Sends the givenHttpRequestto the givenURIand returns the result.
-
Method Details
-
execute
<T> T execute(URI uri, HttpRequest<T> request) throws IOException, ProtocolError, ProtocolException, RedirectionException, UnexpectedStatusException Sends the givenHttpRequestto the givenURIand returns the result.- Parameters:
uri- The URI to send this request to.request- The request to execute.- Returns:
- The result, i.e. the handled server response.
- Throws:
IOExceptionProtocolErrorProtocolExceptionRedirectionExceptionUnexpectedStatusException
-