Class ClassicTestClientAdapter

java.lang.Object
org.apache.hc.core5.testing.framework.ClientPOJOAdapter
org.apache.hc.core5.testing.framework.ClassicTestClientAdapter

public class ClassicTestClientAdapter extends ClientPOJOAdapter
  • Constructor Details

    • ClassicTestClientAdapter

      public ClassicTestClientAdapter()
  • Method Details

    • execute

      public Map<String,Object> execute(String defaultURI, Map<String,Object> request) throws Exception
      Execute an HTTP request.
      Specified by:
      execute in class ClientPOJOAdapter
      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

      public String getClientName()
      Name of the HTTP Client that this adapter uses.
      Specified by:
      getClientName in class ClientPOJOAdapter
      Returns:
      name of the HTTP Client.