Package org.apache.wiki.spi
Class ContentsSPIDefaultImpl
- java.lang.Object
-
- org.apache.wiki.spi.ContentsSPIDefaultImpl
-
- All Implemented Interfaces:
ContentsSPI
public class ContentsSPIDefaultImpl extends java.lang.Object implements ContentsSPI
Default implementation forContentsSPI- See Also:
ContentsSPI
-
-
Constructor Summary
Constructors Constructor Description ContentsSPIDefaultImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachmentattachment(Engine engine, java.lang.String parentPage, java.lang.String fileName)Creates a newAttachment.Pagepage(Engine engine, java.lang.String name)Creates aPageinstance.
-
-
-
Constructor Detail
-
ContentsSPIDefaultImpl
public ContentsSPIDefaultImpl()
-
-
Method Detail
-
attachment
public Attachment attachment(Engine engine, java.lang.String parentPage, java.lang.String fileName)
Creates a newAttachment. The final name of the attachment will be a synthesis of the parent page name and the file name.- Specified by:
attachmentin interfaceContentsSPI- Parameters:
engine- The Engine which is hosting this attachment.parentPage- The page which will contain this attachment.fileName- The file name for the attachment.- Returns:
- new
Attachmentinstance.
-
-