public class CountCallback extends Object implements ApiCallback<CountExtra>
| Constructor and Description |
|---|
CountCallback(ResultViewPanel panel,
int pageSize,
AnnisUI ui) |
| Modifier and Type | Method and Description |
|---|---|
void |
onDownloadProgress(long bytesRead,
long contentLength,
boolean done)
This is called when the API downlond processing.
|
void |
onFailure(ApiException e,
int statusCode,
Map<String,List<String>> responseHeaders)
This is called when the API call fails.
|
void |
onSuccess(CountExtra result,
int statusCode,
Map<String,List<String>> responseHeaders)
This is called when the API call succeeded.
|
void |
onUploadProgress(long bytesWritten,
long contentLength,
boolean done)
This is called when the API upload processing.
|
public CountCallback(ResultViewPanel panel, int pageSize, AnnisUI ui)
public void onFailure(ApiException e, int statusCode, Map<String,List<String>> responseHeaders)
ApiCallbackonFailure in interface ApiCallback<CountExtra>e - The exception causing the failurestatusCode - Status code of the response if available, otherwise it would be 0responseHeaders - Headers of the response if available, otherwise it would be nullpublic void onSuccess(CountExtra result, int statusCode, Map<String,List<String>> responseHeaders)
ApiCallbackonSuccess in interface ApiCallback<CountExtra>result - The result deserialized from responsestatusCode - Status code of the responseresponseHeaders - Headers of the responsepublic void onUploadProgress(long bytesWritten,
long contentLength,
boolean done)
ApiCallbackonUploadProgress in interface ApiCallback<CountExtra>bytesWritten - bytes WrittencontentLength - content length of request bodydone - write endpublic void onDownloadProgress(long bytesRead,
long contentLength,
boolean done)
ApiCallbackonDownloadProgress in interface ApiCallback<CountExtra>bytesRead - bytes ReadcontentLength - content lenngth of the responsedone - Read endCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.