| java.lang.Object com.ecyrd.jspwiki.providers.BasicAttachmentProvider
BasicAttachmentProvider | public class BasicAttachmentProvider implements WikiAttachmentProvider(Code) | | Provides basic, versioning attachments.
Structure is as follows:
attachment_dir/
ThisPage/
attachment.doc/
attachment.properties
1.doc
2.doc
3.doc
picture.png/
attachment.properties
1.png
2.png
ThatPage/
picture.png/
attachment.properties
1.png
The names of the directories will be URLencoded.
"attachment.properties" consists of the following items:
- 1.author = author name for version 1 (etc)
|
Inner Class :public static class AttachmentFilter implements FilenameFilter | |
Inner Class :public static class AttachmentVersionFilter implements FilenameFilter | |
ATTDIR_EXTENSION | final public static String ATTDIR_EXTENSION(Code) | | |
PROP_DISABLECACHE | final public static String PROP_DISABLECACHE(Code) | | |
PROP_STORAGEDIR | final public static String PROP_STORAGEDIR(Code) | | |
log | final static Logger log(Code) | | |
getFileExtension | protected static String getFileExtension(String filename)(Code) | | Returns the file extension. For example "test.png" returns "png".
If file has no extension, will return "bin"
|
|
|