public abstract class AbstractParser<T extends Result> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static com.google.gson.Gson |
CLASS_DECODER |
protected static String |
TYPE |
| Constructor and Description |
|---|
AbstractParser() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.gson.Gson |
getClassDecoder() |
protected float |
getComputing(HTTPResponse response) |
abstract T |
parse(HTTPResponse response) |
protected com.google.gson.JsonElement |
parseJson(String resultString) |
protected static final String TYPE
protected static final com.google.gson.Gson CLASS_DECODER
protected float getComputing(HTTPResponse response)
protected com.google.gson.JsonElement parseJson(String resultString) throws IllegalResultException
IllegalResultExceptionprotected com.google.gson.Gson getClassDecoder()
public abstract T parse(HTTPResponse response) throws ResultException
ResultExceptionCopyright © 2019 Nowtryz. All rights reserved.