public class ExcludeFileOperation extends Object implements WarOperation
| Constructor and Description |
|---|
ExcludeFileOperation(String name) |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends FileEntry> |
additionalFiles() |
void |
preprocessEntry(JarEntry entry,
ExceptionalSupplier<? extends InputStream,IOException> is)
Pre-processes a file entry in a WAR file.
|
InputStream |
processEntry(JarEntry entry,
InputStream is)
Process a file entry in a WAR file.
|
public ExcludeFileOperation(String name)
public InputStream processEntry(JarEntry entry, InputStream is) throws IOException
WarOperationprocessEntry in interface WarOperationentry - the entry in the WAR file.is - the input stream to the original data.is to leave entry unmodified or a new input stream that filters original data.
Return null to not write the entry into the destination WAR file.IOException - if an I/O error occurs.public void preprocessEntry(JarEntry entry, ExceptionalSupplier<? extends InputStream,IOException> is) throws IOException
WarOperationpreprocessEntry in interface WarOperationentry - the entry in the WAR file to read.is - provides access to the input stream of the entry. Only consume if needed.IOException - if an I/O error occurs reading an entry.public Collection<? extends FileEntry> additionalFiles() throws IOException
additionalFiles in interface WarOperationIOException - if an error occurs gathering additional files.Copyright © 2002-2022 Atlassian. All Rights Reserved.