Jagger
 All Classes Namespaces Files Functions Variables Enumerator 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 
22 @SuppressWarnings("unused")
23 public abstract class AbstractHttpInvoker<HTTP_CLIENT extends JHttpClient> implements Invoker<JHttpQuery, JHttpResponse, JHttpEndpoint> {
24 
28  protected HTTP_CLIENT httpClient;
29 
30  public AbstractHttpInvoker(HTTP_CLIENT httpClient) {
31  this.httpClient = httpClient;
32  }
33 
43  @Override
44  public abstract JHttpResponse invoke(JHttpQuery query, JHttpEndpoint endpoint) throws InvocationException;
45 
46  public HTTP_CLIENT getHttpClient() {
47  return httpClient;
48  }
49 }