Class Java11HttpClientTransport
java.lang.Object
org.apache.maven.search.api.transport.Java11HttpClientTransport
- All Implemented Interfaces:
Transport
Java 11
HttpClient
backed transport.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.search.api.transport.Transport
Transport.Response
-
Constructor Summary
ConstructorDescriptionJava11HttpClientTransport
(Duration timeout) Java11HttpClientTransport
(Duration timeout, HttpClient client) -
Method Summary
Modifier and TypeMethodDescriptionThis method should issue HTTP GET requests usingserviceUri
and return response.This method should issue HTTP HEAD requests usingserviceUri
and return response.
-
Constructor Details
-
Java11HttpClientTransport
public Java11HttpClientTransport() -
Java11HttpClientTransport
-
Java11HttpClientTransport
-
-
Method Details
-
get
Description copied from interface:Transport
This method should issue HTTP GET requests usingserviceUri
and return response.- Specified by:
get
in interfaceTransport
- Throws:
IOException
-
head
Description copied from interface:Transport
This method should issue HTTP HEAD requests usingserviceUri
and return response.- Specified by:
head
in interfaceTransport
- Throws:
IOException
-