Class ClassicTestClientAdapter
java.lang.Object
org.apache.hc.core5.testing.framework.ClientPOJOAdapter
org.apache.hc.core5.testing.framework.ClassicTestClientAdapter
-
Field Summary
Fields inherited from class org.apache.hc.core5.testing.framework.ClientPOJOAdapter
BODY, CONTENT_TYPE, HEADERS, METHOD, NAME, PATH, PROTOCOL_VERSION, QUERY, REQUEST, RESPONSE, STATUS, TIMEOUT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hc.core5.testing.framework.ClientPOJOAdapter
assertRequestSupported, checkRequestSupport, modifyRequest
-
Constructor Details
-
ClassicTestClientAdapter
public ClassicTestClientAdapter()
-
-
Method Details
-
execute
Execute an HTTP request.- Specified by:
execute
in classClientPOJOAdapter
- Parameters:
defaultURI
- the URI used by default. The path in the request is usually appended to it.request
- the request as specified above.- Returns:
- the response to the request as specified above.
- Throws:
Exception
- in case of a problem
-
getClientName
Name of the HTTP Client that this adapter uses.- Specified by:
getClientName
in classClientPOJOAdapter
- Returns:
- name of the HTTP Client.
-