public interface Attachment extends Page
ALIAS, AUTHOR, CHANGENOTE, DESCRIPTION, REDIRECT, VIEWCOUNT| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileName()
Returns the file name of the attachment.
|
java.lang.String |
getParentName()
Returns the name of the parent of this Attachment, i.e. the page which contains this attachment.
|
boolean |
isCacheable()
Returns true, if this attachment can be cached by the user agent.
|
void |
setCacheable(boolean value)
Sets this attachment to be cacheable or not.
|
void |
setFileName(java.lang.String name)
Sets the file name of this attachment.
|
clone, getAcl, getAttribute, getAttributes, getAuthor, getLastModified, getName, getSize, getVersion, getWiki, hasMetadata, invalidateMetadata, removeAttribute, setAcl, setAttribute, setAuthor, setHasMetadata, setLastModified, setSize, setVersionjava.lang.String getFileName()
void setFileName(java.lang.String name)
name - The name of the attachment. Must be a legal file name without the path.java.lang.String getParentName()
boolean isCacheable()
void setCacheable(boolean value)
value - True or false, depending on whether you want this attachment to be cacheable or not.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.