Class ClassicTestClientAdapter
- java.lang.Object
-
- org.apache.hc.core5.testing.framework.ClientPOJOAdapter
-
- org.apache.hc.core5.testing.framework.ClassicTestClientAdapter
-
public class ClassicTestClientAdapter extends ClientPOJOAdapter
-
-
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 Constructor Description ClassicTestClientAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
execute(java.lang.String defaultURI, java.util.Map<java.lang.String,java.lang.Object> request)
Execute an HTTP request.java.lang.String
getClientName()
Name of the HTTP Client that this adapter uses.-
Methods inherited from class org.apache.hc.core5.testing.framework.ClientPOJOAdapter
assertRequestSupported, checkRequestSupport, modifyRequest
-
-
-
-
Method Detail
-
execute
public java.util.Map<java.lang.String,java.lang.Object> execute(java.lang.String defaultURI, java.util.Map<java.lang.String,java.lang.Object> request) throws java.lang.Exception
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:
java.lang.Exception
- in case of a problem
-
getClientName
public java.lang.String getClientName()
Name of the HTTP Client that this adapter uses.- Specified by:
getClientName
in classClientPOJOAdapter
- Returns:
- name of the HTTP Client.
-
-