public abstract class AbstractAttachmentResource extends Object implements AttachmentResource
| Modifier and Type | Field and Description |
|---|---|
protected String |
comment |
protected long |
contentLength |
protected String |
contentType |
protected String |
filename |
protected boolean |
minorEdit |
| Constructor and Description |
|---|
AbstractAttachmentResource(String filename,
String contentType,
long contentLength,
String comment,
boolean minorEdit) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
boolean |
exists() |
String |
getComment() |
long |
getContentLength() |
String |
getContentType() |
File |
getFile() |
String |
getFilename() |
URI |
getURI() |
URL |
getURL() |
boolean |
isMinorEdit() |
boolean |
isOpen() |
long |
lastModified() |
String |
toString() |
protected final String filename
protected final String contentType
protected final long contentLength
protected final String comment
protected final boolean minorEdit
public String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic String getContentType()
getContentType in interface AttachmentResourcepublic long getContentLength()
getContentLength in interface AttachmentResourcepublic long contentLength()
contentLength in interface org.springframework.core.io.Resourcepublic boolean isMinorEdit()
isMinorEdit in interface AttachmentResourceAttachment.isMinorEdit())public boolean exists()
exists in interface org.springframework.core.io.Resourcepublic boolean isOpen()
isOpen in interface org.springframework.core.io.Resourcepublic String getComment()
getComment in interface AttachmentResourcepublic URL getURL() throws IOException
getURL in interface org.springframework.core.io.ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface org.springframework.core.io.ResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative in interface org.springframework.core.io.ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface org.springframework.core.io.ResourceIOExceptionCopyright © 2003–2016 Atlassian. All rights reserved.