Package org.citrusframework.message
Class ZipMessage.Entry
java.lang.Object
org.citrusframework.message.ZipMessage.Entry
- Enclosing class:
- ZipMessage
Zip message entry representing a directory or file in the zip message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntry(ZipMessage.Entry entry) Adds new zip archive entry.byte[]Gets the content.Gets the entries.getName()Gets the name.booleanGets the directory.voidsetContent(byte[] content) Sets the content.
-
Constructor Details
-
Entry
Constructor initializing name.- Parameters:
name-
-
Entry
- Throws:
IOException
-
Entry
- Throws:
IOException
-
-
Method Details
-
getName
Gets the name.- Returns:
-
isDirectory
public boolean isDirectory()Gets the directory.- Returns:
-
getEntries
Gets the entries.- Returns:
-
addEntry
Adds new zip archive entry.- Parameters:
entry-- Returns:
-
getContent
public byte[] getContent()Gets the content.- Returns:
-
setContent
public void setContent(byte[] content) Sets the content.- Parameters:
content-
-