| Package | Description |
|---|---|
| net.nowtryz.cafetapi.exceptions |
API exceptions
|
| net.nowtryz.cafetapi.http |
Fetching data package
|
| net.nowtryz.cafetapi.parsers |
Parsers collection
|
| Modifier and Type | Method and Description |
|---|---|
HTTPResponse |
HTTPException.getResponse() |
HTTPResponse |
ContentTypeException.getResponse() |
| Constructor and Description |
|---|
ContentTypeException(String arg0,
HTTPResponse response) |
HTTPException(String message,
int code,
HTTPResponse response) |
| Modifier and Type | Method and Description |
|---|---|
HTTPResponse |
HttpManager.query(HttpManager.HttpMethod method,
String path)
Perform an http rest query to the server
|
HTTPResponse |
HttpManager.query(HttpManager.HttpMethod method,
String path,
com.google.gson.JsonElement body)
Perform an http rest query to the server with a body
|
HTTPResponse |
HttpManager.query(HttpManager.HttpMethod method,
String path,
com.google.gson.JsonElement body,
Map<String,String> headers)
Perform an http rest query to the server with a body and additionnal headers
|
| Modifier and Type | Method and Description |
|---|---|
protected float |
AbstractParser.getComputing(HTTPResponse response) |
ErrorResult |
ErrorParser.parse(HTTPResponse response) |
DataResult<S> |
DataParser.parse(HTTPResponse response) |
abstract T |
AbstractParser.parse(HTTPResponse response) |
Result |
DefaultParser.parse(HTTPResponse response) |
LoginResult |
LoginParser.parse(HTTPResponse response) |
ArrayResult<T> |
ArrayParser.parse(HTTPResponse response) |
static ErrorResult |
ErrorParser.parseResponse(HTTPResponse response) |
static Result |
DefaultParser.parseResponse(HTTPResponse response) |
static LoginResult |
LoginParser.parseResponse(HTTPResponse response) |
static <T extends CafetData> |
DataParser.parseResponse(HTTPResponse response,
Class<T> classOfT) |
static <T extends CafetData> |
ArrayParser.parseResponse(HTTPResponse response,
Class<T> classOfT,
Class<T[]> classOfTArray) |
Copyright © 2019 Nowtryz. All rights reserved.