Class RemovePathEntry

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

public class RemovePathEntry extends Object implements FileEntry
Wrapper to remove any path information from a file entry. e.g. mydirectory/myfile.txt -> myfile.txt.
  • Constructor Details

    • RemovePathEntry

      public RemovePathEntry(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.