Class ReleaseController


  • public class ReleaseController
    extends Object
    • Constructor Detail

      • ReleaseController

        public ReleaseController​(FodApiConnection apiConnection,
                                 PrintStream logger,
                                 String correlationId)
        Constructor
        Parameters:
        apiConnection - apiConnection object with client info
        logger - logger object
        correlationId - correlation id
    • Method Detail

      • getRelease

        public ReleaseDTO getRelease​(int releaseId,
                                     String fields)
                              throws IOException
        Get an individual release with given fields
        Parameters:
        releaseId - release to get
        fields - fields to return at_return ReleaseDTO object with given fields
        Throws:
        IOException - in some circumstances
      • getRelease

        public ScanSummaryDTO getRelease​(int releaseId,
                                         int scanId)
                                  throws IOException
        Get an individual release
        Parameters:
        releaseId - release to get
        scanId - scanId to find specific scan result at_return ScanSummaryDTO object
        Throws:
        IOException - in some circumstances
      • getReleaseByScanId

        public PollingSummaryDTO getReleaseByScanId​(int releaseId,
                                                    int scanId)
                                             throws IOException
        Get an individual release
        Parameters:
        releaseId - release to get
        scanId - scanId to find specific scan result at_return ScanSummaryDTO object
        Throws:
        IOException - in some circumstances
      • getCorrelationId

        protected String getCorrelationId()
      • println

        protected void println​(String log)
      • printStackTrace

        protected void printStackTrace​(Exception e)