public class ParserService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ApiEndpoints |
_endpoints |
protected EnvironmentSettings |
_settings |
| Constructor and Description |
|---|
ParserService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
Do not use this.
|
| Modifier and Type | Method and Description |
|---|---|
protected okhttp3.RequestBody |
createJsonBody(Object body) |
protected <T extends ApiResponse<?>> |
executeRequest(okhttp3.Request apiRequest,
Class<T> classOfT,
String requestBody) |
ParseJobResponse |
parseJob(ParseRequest request)
Parse a job
|
ParseResumeResponse |
parseResume(ParseRequest request)
Parse a resume
|
protected void |
setEnvironment(IndexingOptionsGeneric options) |
protected final EnvironmentSettings _settings
protected final ApiEndpoints _endpoints
public ParserService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
TxClient.parser()httpClient - The http client for API callssettings - environment settingspublic ParseResumeResponse parseResume(ParseRequest request) throws TxException
request - The request bodyTxException - Thrown when an API error occurspublic ParseJobResponse parseJob(ParseRequest request) throws TxException
request - The request bodyTxException - Thrown when an API error occursprotected void setEnvironment(IndexingOptionsGeneric options)
protected okhttp3.RequestBody createJsonBody(Object body)
protected <T extends ApiResponse<?>> HttpResponse<T> executeRequest(okhttp3.Request apiRequest, Class<T> classOfT, String requestBody) throws TxException
TxExceptionCopyright © 2025. All rights reserved.