public class Attachment extends Page
Attachment class
Represents a Confluence Attachment
Modifier and Type | Class and Description |
---|---|
static class |
Attachment.AttachmentBuilder
AttachmentBuilder internal class
|
Page.PageBuilder
Modifier and Type | Field and Description |
---|---|
protected InputStream |
contentStream |
protected String |
downloadUrl |
protected static String |
KEY_DOWNLOAD |
protected static String |
KEY_EXTENSIONS |
baseUrl, content, createdDate, creator, creatorUsername, id, KEY_BASE, KEY_BODY, KEY_BY, KEY_CONTEXT, KEY_CREATED_BY, KEY_CREATED_DATE, KEY_DISPLAY_NAME, KEY_HISTORY, KEY_ID, KEY_KEY, KEY_LINKS, KEY_MEDIATYPE, KEY_SELF, KEY_SPACE, KEY_TITLE, KEY_TYPE, KEY_USER_NAME, KEY_VALUE, KEY_VERSION, KEY_VIEW, KEY_WEBUI, KEY_WHEN, labels, lastModified, lastModifier, lastModifierUsername, length, mediaType, space, title, type, url, urlContext, version, webUrl
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
static ConfluenceResourceBuilder<Attachment> |
builder() |
InputStream |
getContentStream() |
String |
getDownloadUrl() |
boolean |
hasContent() |
Boolean |
hasContentStream() |
protected void |
refineMetadata(Map<String,Object> metadata)
Used to be overwritten by child classes to add more metadata to the map
|
getBaseUrl, getContent, getCreatedDate, getCreator, getCreatorUsername, getId, getLabels, getLastModifiedDate, getLastModifier, getLastModifierUsername, getLength, getMediaType, getMetadataAsMap, getSpace, getTitle, getType, getUrl, getUrlContext, getVersion, getWebUrl
protected static final String KEY_DOWNLOAD
protected static final String KEY_EXTENSIONS
protected String downloadUrl
protected InputStream contentStream
public static ConfluenceResourceBuilder<Attachment> builder()
public String getDownloadUrl()
public boolean hasContent()
hasContent
in class Page
public Boolean hasContentStream()
public InputStream getContentStream()
getContentStream
in class Page