Class PrefixedFileEntry

java.lang.Object
com.atlassian.jira.plugins.ha.container.warhack.PrefixedFileEntry
All Implemented Interfaces:
FileEntry

public class PrefixedFileEntry extends Object implements FileEntry
Wrapper to add a prefix to an existing file entry. e.g. change myfile.txt to mydirectory/myfile.txt.
  • Constructor Details

    • PrefixedFileEntry

      public PrefixedFileEntry(String prefix, FileEntry entry)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface FileEntry
      Returns:
      name of the entry in the WAR file. e.g. WEB-INF/classes/META-INF/myfile.txt
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface FileEntry
      Returns:
      an input stream for reading the data of the file to put into the WAR.
      Throws:
      IOException - if an I/O error occurs.