Class SupportZipGenerator

java.lang.Object
de.hybris.platform.hac.util.SupportZipGenerator

public class SupportZipGenerator extends Object
  • Constructor Details

    • SupportZipGenerator

      public SupportZipGenerator()
  • Method Details

    • getZip

      public File getZip()
      returns the supportzip. If it's not yet existent, it gets created
    • zipExists

      public boolean zipExists()
      returns, whether the supportzip exists
    • deleteZip

      public void deleteZip()
      deletes the supportzip-File
    • createZip

      public void createZip(List<File> logFiles)
      removes the old zip (if exists), and creates a new one.
    • logsCollectable

      public boolean logsCollectable()
      returns a boolean, whether the logs are collectable. Right now, the logs are not collectable in Weblogic
    • getLogFiles

      public List<File> getLogFiles()
      Returns an array of Logfiles found in the logDir and subdirs
    • sendZipViaMail

      public void sendZipViaMail() throws org.apache.commons.mail.EmailException
      send the supportzip-file via Mail. To use this, you should set the mail.* - properties properly.
      Throws:
      org.apache.commons.mail.EmailException