public abstract class AbstractCompletionListener extends java.lang.Object implements CompletionListener
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
erroLogPrefix |
private java.nio.file.Path |
errorLogFolder |
private java.lang.String |
errorLogSuffix |
private Logger |
log
The log for providing
DEBUG feedback about the process. |
Constructor and Description |
---|
AbstractCompletionListener(java.nio.file.Path errorLogFolder,
java.lang.String errologPrefix,
java.lang.String errorLogSuffix,
Logger log) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
logErrorMessage(HttpResult error,
java.nio.file.Path errorMessagePath,
int maxLine) |
void |
onError(HttpResult error) |
private java.lang.String |
readLines(java.io.BufferedReader reader,
int maxLine,
java.nio.file.Path errorMessagePath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onSuccess
private final Logger log
DEBUG
feedback about the process.private final java.nio.file.Path errorLogFolder
private final java.lang.String erroLogPrefix
private final java.lang.String errorLogSuffix
public AbstractCompletionListener(java.nio.file.Path errorLogFolder, java.lang.String errologPrefix, java.lang.String errorLogSuffix, Logger log)
public void onError(HttpResult error)
onError
in interface CompletionListener
private java.lang.String logErrorMessage(HttpResult error, java.nio.file.Path errorMessagePath, int maxLine)
private java.lang.String readLines(java.io.BufferedReader reader, int maxLine, java.nio.file.Path errorMessagePath) throws java.io.IOException
java.io.IOException