interface AttachmentStorageAn attachment store records potentially large binary objects, identified by their hash.
| importAttachment |
abstract fun importAttachment(jar: InputStream): SecureHashInserts the given attachment into the store, does |
| openAttachment |
abstract fun openAttachment(id: SecureHash): Attachment?Returns a handle to a locally stored attachment, or null if its not known. The handle can be used to open a stream for the data, which will be a zip/jar file. |
| MockAttachmentStorage |
class MockAttachmentStorage : AttachmentStorage |
| NodeAttachmentService |
class NodeAttachmentService : AttachmentStorage, AcceptsFileUploadStores attachments in the specified local directory, which must exist. Doesnt allow new attachments to be uploaded. |