Package org.apache.wiki.spi
Class ContentsSPIDefaultImpl
java.lang.Object
org.apache.wiki.spi.ContentsSPIDefaultImpl
- All Implemented Interfaces:
ContentsSPI
Default implementation for
ContentsSPI- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachment(Engine engine, String parentPage, String fileName) Creates a newAttachment.Creates aPageinstance.
-
Constructor Details
-
ContentsSPIDefaultImpl
public ContentsSPIDefaultImpl()
-
-
Method Details
-
attachment
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.
-
page
Creates aPageinstance.- Specified by:
pagein interfaceContentsSPI- Parameters:
engine- The Engine that owns this page.name- The name of the page.- Returns:
- new
Pageinstance.
-