public abstract class GetRequest<T> extends Request
connector, gson, queryParameters| Constructor and Description |
|---|
GetRequest(ServiceConnector connector,
String route) |
GetRequest(ServiceConnector connector,
String route,
String query,
Map<String,String> props,
String token) |
GetRequest(ServiceConnector connector,
String route,
String token,
String query) |
| Modifier and Type | Method and Description |
|---|---|
String |
getQuery() |
abstract T |
parse(String response) |
T |
run() |
getBodyAttributes, getHeaderAttributes, getQueryParameters, getRoute, getToken, withBodyAttribute, withBodyAttributes, withHeaderAttribute, withHeaderAttributes, withQueryParameter, withQueryParamspublic GetRequest(ServiceConnector connector, String route)
public GetRequest(ServiceConnector connector, String route, @Nullable String token, @Nullable String query)
public T run() throws CodotaConnectionException, CodotaHttpException
public String getQuery()
Copyright © 2018. All rights reserved.