Jagger
 All Classes Namespaces Files Functions Variables Groups Pages
AbstractHttpInvoker.java
Go to the documentation of this file.
1 
4 package com.griddynamics.jagger.invoker.v2;
5 
6 import com.griddynamics.jagger.invoker.InvocationException;
7 import com.griddynamics.jagger.invoker.Invoker;
8 
20 @SuppressWarnings("unused")
21 public abstract class AbstractHttpInvoker<HTTP_CLIENT extends JHttpClient> implements Invoker<JHttpQuery, JHttpResponse, JHttpEndpoint> {
22 
26  protected HTTP_CLIENT httpClient;
27 
28  public AbstractHttpInvoker(HTTP_CLIENT httpClient) {
29  this.httpClient = httpClient;
30  }
31 
41  @Override
42  public abstract JHttpResponse invoke(JHttpQuery query, JHttpEndpoint endpoint) throws InvocationException;
43 
44  public HTTP_CLIENT getHttpClient() {
45  return httpClient;
46  }
47 }