Package com.dnsimple.http
Class HttpEndpointClient
java.lang.Object
com.dnsimple.http.HttpEndpointClient
-
Constructor Summary
ConstructorsConstructorDescriptionHttpEndpointClient(HttpRequestFactory requestFactory, URL apiBase, String userAgent, Optional<String> accessToken) -
Method Summary
Modifier and TypeMethodDescriptionempty(HttpMethod method, String path, ListOptions options, Object body) <DATA_TYPE>
ListResponse<DATA_TYPE>list(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType) <DATA_TYPE>
PaginatedResponse<DATA_TYPE>page(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType) <DATA_TYPE>
DATA_TYPEraw(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType) voidsetAccessToken(String accessToken) <DATA_TYPE>
SimpleResponse<DATA_TYPE>simple(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType)
-
Constructor Details
-
HttpEndpointClient
public HttpEndpointClient(HttpRequestFactory requestFactory, URL apiBase, String userAgent, Optional<String> accessToken)
-
-
Method Details
-
getApiBase
-
setAccessToken
-
empty
-
simple
public <DATA_TYPE> SimpleResponse<DATA_TYPE> simple(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType) -
list
public <DATA_TYPE> ListResponse<DATA_TYPE> list(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType) -
page
public <DATA_TYPE> PaginatedResponse<DATA_TYPE> page(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType) -
raw
public <DATA_TYPE> DATA_TYPE raw(HttpMethod method, String path, ListOptions options, Object body, Class<DATA_TYPE> dataType)
-