Package org.citrusframework.message
Class ZipMessage
java.lang.Object
org.citrusframework.message.DefaultMessage
org.citrusframework.message.ZipMessage
- All Implemented Interfaces:
Serializable,org.citrusframework.message.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.addEntry(org.citrusframework.spi.Resource resource) 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.citrusframework.message.Message
print, print, print
-
Constructor Details
-
ZipMessage
public ZipMessage()
-
-
Method Details
-
getPayload
public byte[] getPayload()- Specified by:
getPayloadin interfaceorg.citrusframework.message.Message- 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:
-