public class Attachment extends WikiPage
ALIAS, AUTHOR, CHANGENOTE, DESCRIPTION, REDIRECT, VIEWCOUNT
Constructor and Description |
---|
Attachment(WikiEngine engine,
String parentPage,
String fileName)
Creates a new attachment.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Returns the file name of the attachment.
|
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(String name)
Sets the file name of this attachment.
|
String |
toString()
Returns a human-readable, only-debugging-suitable description.
|
clone, compareTo, getAcl, getAttribute, getAttributes, getAuthor, getLastModified, getName, getSize, getVersion, getWiki, hashCode, hasMetadata, invalidateMetadata, removeAttribute, setAcl, setAttribute, setAuthor, setHasMetadata, setLastModified, setSize, setVersion
public Attachment(WikiEngine engine, String parentPage, String fileName)
engine
- The WikiEngine which is hosting this attachment.parentPage
- The page which will contain this attachment.fileName
- The file name for the attachment.public String getFileName()
public void setFileName(String name)
name
- The name of the attachment. Must be a legal file name without
the path.public String getParentName()
public boolean isCacheable()
public void setCacheable(boolean value)
value
- True or false, depending on whether you want this attachment
to be cacheable or not.Copyright © 2001-2016 The Apache Software Foundation. All rights reserved.