Package org.eclipse.cbi.maven.http
Class AbstractCompletionListener
- java.lang.Object
-
- org.eclipse.cbi.maven.http.AbstractCompletionListener
-
- All Implemented Interfaces:
CompletionListener
- Direct Known Subclasses:
RemoteJarSigner.OverwriteJarOnSuccess
public abstract class AbstractCompletionListener extends java.lang.Object implements CompletionListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
erroLogPrefix
private java.nio.file.Path
errorLogFolder
private java.lang.String
errorLogSuffix
private Logger
log
The log for providingDEBUG
feedback about the process.
-
Constructor Summary
Constructors Constructor Description AbstractCompletionListener(java.nio.file.Path errorLogFolder, java.lang.String errologPrefix, java.lang.String errorLogSuffix, Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.cbi.maven.http.CompletionListener
onSuccess
-
-
-
-
Field Detail
-
log
private final Logger log
The log for providingDEBUG
feedback about the process.
-
errorLogFolder
private final java.nio.file.Path errorLogFolder
-
erroLogPrefix
private final java.lang.String erroLogPrefix
-
errorLogSuffix
private final java.lang.String errorLogSuffix
-
-
Constructor Detail
-
AbstractCompletionListener
public AbstractCompletionListener(java.nio.file.Path errorLogFolder, java.lang.String errologPrefix, java.lang.String errorLogSuffix, Logger log)
-
-
Method Detail
-
onError
public void onError(HttpResult error)
- Specified by:
onError
in interfaceCompletionListener
-
logErrorMessage
private java.lang.String logErrorMessage(HttpResult error, java.nio.file.Path errorMessagePath, int maxLine)
-
readLines
private java.lang.String readLines(java.io.BufferedReader reader, int maxLine, java.nio.file.Path errorMessagePath) throws java.io.IOException
- Throws:
java.io.IOException
-
-