A B C D G H O P R S W 
All Classes All Packages

A

ApiRequest<T> - Interface in dev.mayuna.simpleapi
Represents an API request.
ApiRequestBuilder<T> - Class in dev.mayuna.simpleapi
A builder for ApiRequest.
ApiResponse<T extends WrappedApi> - Class in dev.mayuna.simpleapi
An abstract class to represent an API response.
ApiResponse() - Constructor for class dev.mayuna.simpleapi.ApiResponse
 
applyHeadersToHttpRequestBuilder(HttpRequest.Builder, RequestHeader[]) - Method in interface dev.mayuna.simpleapi.ApiRequest
Applies the RequestHeaders to the given HttpRequest.Builder.

B

build() - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Builds the ApiRequest.
builder(WrappedApi, Class<T>) - Static method in interface dev.mayuna.simpleapi.ApiRequest
Creates a new ApiRequestBuilder for the given WrappedApi and Class.

C

createHttpClientInstance() - Method in interface dev.mayuna.simpleapi.ApiRequest
Creates a new HttpClient instance.
createHttpRequestBuilderInstance() - Method in interface dev.mayuna.simpleapi.ApiRequest
Creates a new HttpRequest.Builder instance.
createInstanceOfResponseClass() - Method in interface dev.mayuna.simpleapi.ApiRequest
Creates a new instance of the response class.

D

DELETE - Static variable in class dev.mayuna.simpleapi.RequestMethod
 
DeserializableApiResponse<T extends WrappedApi> - Class in dev.mayuna.simpleapi
An API response that can be deserialized.
DeserializableApiResponse() - Constructor for class dev.mayuna.simpleapi.DeserializableApiResponse
 
deserialize(ApiRequest<?>, HttpResponse<?>) - Method in class dev.mayuna.simpleapi.DeserializableApiResponse
Deserialize the response body into an object of current type.
deserialize(ApiRequest<?>, HttpResponse<?>) - Method in class dev.mayuna.simpleapi.GsonApiResponse
 
dev.mayuna.simpleapi - package dev.mayuna.simpleapi
 

G

GET - Static variable in class dev.mayuna.simpleapi.RequestMethod
 
getBodyHandler() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the HttpResponse.BodyHandler of this ApiRequest.
getBodyPublisher() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the HttpRequest.BodyPublisher of this ApiRequest.
getComputedEndpoint() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the computed endpoint of this ApiRequest.
getDefaultUrl() - Method in interface dev.mayuna.simpleapi.WrappedApi
Gets the default URL for this API.
getEndpoint() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the endpoint of this ApiRequest.
getGson() - Method in class dev.mayuna.simpleapi.GsonApiResponse
Get a Gson instance.
getPathParameters() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the PathParameters of this ApiRequest.
getRequestHeaders() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the RequestHeaders of this ApiRequest.
getRequestMethod() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the RequestMethod of this ApiRequest.
getRequestQueries() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the RequestQuerys of this ApiRequest.
getResponseClass() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the Class of the response.
getThreadFactory() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the ThreadFactory to use for sending the async request.
getUrl() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the URL of this ApiRequest.
getWrappedApi() - Method in interface dev.mayuna.simpleapi.ApiRequest
Gets the WrappedApi of this ApiRequest.
GsonApiResponse<T extends WrappedApi> - Class in dev.mayuna.simpleapi
Implements DeserializableApiResponse using Gson library.
GsonApiResponse() - Constructor for class dev.mayuna.simpleapi.GsonApiResponse
 

H

handleResponse(HttpResponse<?>) - Method in interface dev.mayuna.simpleapi.ApiRequest
Handles the given HttpResponse.

O

of(String, String) - Static method in class dev.mayuna.simpleapi.RequestHeader
Create a new RequestHeader instance.
of(String, String) - Static method in class dev.mayuna.simpleapi.PathParameter
Creates PathParameter with parameter name and its replacement
of(String, String) - Static method in class dev.mayuna.simpleapi.RequestQuery
Creates RequestQuery with name and value
of(String) - Static method in class dev.mayuna.simpleapi.RequestMethod
Creates RequestMethod with request method name
ofContentType(String) - Static method in class dev.mayuna.simpleapi.RequestHeader
Create a new RequestHeader instance with the key Content-Type.
ofResponse(WrappedApi, Class<T>) - Static method in class dev.mayuna.simpleapi.ApiRequestBuilder
Creates a new ApiRequestBuilder for the given WrappedApi and Class.
onApiRequest(ApiRequest<?>) - Method in interface dev.mayuna.simpleapi.WrappedApi
Is called before the request is sent.

P

PathParameter - Class in dev.mayuna.simpleapi
Represents path parameter which will be replaced in your request
POST - Static variable in class dev.mayuna.simpleapi.RequestMethod
 
PUT - Static variable in class dev.mayuna.simpleapi.RequestMethod
 

R

RequestHeader - Class in dev.mayuna.simpleapi
 
RequestMethod - Class in dev.mayuna.simpleapi
 
RequestQuery - Class in dev.mayuna.simpleapi
 

S

send() - Method in interface dev.mayuna.simpleapi.ApiRequest
Sends the request synchronously.
sendAsync() - Method in interface dev.mayuna.simpleapi.ApiRequest
Sends the request asynchronously.

W

withBodyHandler(HttpResponse.BodyHandler<?>) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Sets the HttpResponse.BodyHandler of the request.
withBodyPublisher(HttpRequest.BodyPublisher) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Sets the HttpRequest.BodyPublisher of the request.
withEndpoint(String) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Sets the endpoint of the request.
withPathParameter(PathParameter) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Adds a PathParameter to the request.
withPathParameters(PathParameter, PathParameter...) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Adds multiple PathParameters to the request.
withRequestHeader(RequestHeader) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Adds a RequestHeader to the request.
withRequestHeaders(RequestHeader, RequestHeader...) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Adds multiple RequestHeaders to the request.
withRequestMethod(RequestMethod) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Sets the request method of the request.
Pro-tip: You can use pre-defined instances of RequestMethod like RequestMethod.GET.
withRequestMethod(String) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
 
withRequestQueries(RequestQuery, RequestQuery...) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Adds multiple RequestQuerys to the request.
withRequestQuery(RequestQuery) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Adds a RequestQuery to the request.
withUrl(String) - Method in class dev.mayuna.simpleapi.ApiRequestBuilder
Sets the url of the request.
WrappedApi - Interface in dev.mayuna.simpleapi
 
A B C D G H O P R S W 
All Classes All Packages