Class AbstractArchiveFileReport
java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
de.tracetronic.jenkins.plugins.ecutest.report.AbstractTestReport
de.tracetronic.jenkins.plugins.ecutest.report.AbstractArchiveFileReport
- All Implemented Interfaces:
ModelObject
- Direct Known Subclasses:
ATXZipReport
,ETLogReport
,GeneratorReport
,TraceAnalysisReport
,TRFReport
Common base class for
TRFReport
and ETLogReport
holding the archive file information.
The build that holds the artifact is resolved by StaplerRequest.findAncestorObject(Class)
at runtime.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractArchiveFileReport
(String id, String title, String fileName, long fileSize) Instantiates a newAbstractArchiveFileReport
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
doDynamic
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Send contents of the archive file that is requested via HTTP.abstract String
Gets the archive directory containing the stored files.protected VirtualFile
getArchiveTargetDir
(File rootDir) Gets the archive target directory for use inAbstractRequestHandler.doZipDownload(org.kohsuke.stapler.StaplerRequest, org.kohsuke.stapler.StaplerResponse)
.long
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractTestReport
addSubReport, addSubReports, getBuild, getDisplayName, getId, getSubReports, getTitle, getUrl
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
doZipDownload, getAnchestorBuild, getAnchestorProject, getBuildAction, getOwner
-
Constructor Details
-
AbstractArchiveFileReport
Instantiates a newAbstractArchiveFileReport
.- Parameters:
id
- the id used in the report URLtitle
- the report titlefileName
- the log file namefileSize
- the log file size
-
-
Method Details
-
getFileName
-
getFileSize
public long getFileSize() -
getArchiveDir
Gets the archive directory containing the stored files.- Returns:
- the archive directory
-
getArchiveTargetDir
Description copied from class:AbstractRequestHandler
Gets the archive target directory for use inAbstractRequestHandler.doZipDownload(org.kohsuke.stapler.StaplerRequest, org.kohsuke.stapler.StaplerResponse)
.- Specified by:
getArchiveTargetDir
in classAbstractRequestHandler
- Parameters:
rootDir
- the root directory- Returns:
- the archive target directory
-
doDynamic
public void doDynamic(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException Send contents of the archive file that is requested via HTTP.- Parameters:
req
- theStaplerRequest
used for access this reportrsp
- theStaplerResponse
used for serving the file- Throws:
IOException
- signals that an I/O exception has occurredjavax.servlet.ServletException
- if serving the file failed
-