public class FileStoreAttachmentResource extends AbstractAttachmentResource implements AttachmentResource
Modifier and Type | Class and Description |
---|---|
static class |
FileStoreAttachmentResource.Builder |
comment, contentLength, contentType, filename, minorEdit
Constructor and Description |
---|
FileStoreAttachmentResource(FileStoreAttachmentResource.Builder builder) |
FileStoreAttachmentResource(String fileStoreId,
Attachment.CollectionNameType collectionNameType,
String filename,
String contentType,
long contentLength,
String comment,
boolean minorEdit) |
Modifier and Type | Method and Description |
---|---|
static FileStoreAttachmentResource.Builder |
builder(String filename) |
Attachment.CollectionNameType |
getCollectionNameType() |
String |
getDescription() |
String |
getFileStoreId() |
InputStream |
getInputStream() |
boolean |
isReadable() |
contentLength, createRelative, exists, getComment, getContentLength, getContentType, getFile, getFilename, getURI, getURL, isMinorEdit, isOpen, lastModified, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComment, getContentLength, getContentType, isMinorEdit
public FileStoreAttachmentResource(String fileStoreId, Attachment.CollectionNameType collectionNameType, String filename, String contentType, long contentLength, String comment, boolean minorEdit)
public FileStoreAttachmentResource(FileStoreAttachmentResource.Builder builder)
public String getFileStoreId()
public Attachment.CollectionNameType getCollectionNameType()
public boolean isReadable()
isReadable
in interface org.springframework.core.io.Resource
public String getDescription()
getDescription
in interface org.springframework.core.io.Resource
public InputStream getInputStream() throws IOException
getInputStream
in interface org.springframework.core.io.InputStreamSource
IOException
public static FileStoreAttachmentResource.Builder builder(String filename)
Copyright © 2003–2017 Atlassian. All rights reserved.