Package org.citrusframework.message
Class ZipMessage
java.lang.Object
org.citrusframework.message.DefaultMessage
org.citrusframework.message.ZipMessage
- All Implemented Interfaces:
Serializable,Message
- Since:
- 2.7.5
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classZip message entry representing a directory or file in the zip message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds new zip archive entry.Adds new zip archive entry with given content.Adds new zip archive entry.addEntry(ZipMessage.Entry entry) Adds new zip archive entry.Adds new zip archive entry.byte[]Methods inherited from class org.citrusframework.message.DefaultMessage
addHeaderData, getHeader, getHeaderData, getHeaders, getId, getName, getPayload, getTimestamp, getType, removeHeader, setHeader, setName, setPayload, setType, setType, toString
-
Constructor Details
-
ZipMessage
public ZipMessage()
-
-
Method Details
-
getPayload
public byte[] getPayload()- Specified by:
getPayloadin interfaceMessage- Overrides:
getPayloadin classDefaultMessage
-
addEntry
Adds new zip archive entry. Resource can be a file or directory. In case of directory all files will be automatically added to the zip archive. Directory structures are retained throughout this process.- Parameters:
resource-- Returns:
-
addEntry
Adds new zip archive entry. Resource can be a file or directory. In case of directory all files will be automatically added to the zip archive. Directory structures are retained throughout this process.- Parameters:
resource-- Returns:
-
addEntry
Adds new zip archive entry. Entry can be a file or directory. In case of directory all files will be automatically added to the zip archive. Directory structures are retained throughout this process.- Parameters:
file-- Returns:
-
addEntry
Adds new zip archive entry with given content.- Parameters:
fileName-content-- Returns:
-
addEntry
Adds new zip archive entry.- Parameters:
entry-- Returns:
-