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 for
ContentsSPI
- See Also:
ContentsSPI
-
Constructor Summary
Constructors Constructor Description ContentsSPIDefaultImpl()
-
Method Summary
Modifier and Type Method Description Attachment
attachment(Engine engine, java.lang.String parentPage, java.lang.String fileName)
Creates a newAttachment
.Page
page(Engine engine, java.lang.String name)
Creates aPage
instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ContentsSPIDefaultImpl
public ContentsSPIDefaultImpl()
-
-
Method Details
-
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:
attachment
in 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
Attachment
instance.
-
page
Creates aPage
instance.- Specified by:
page
in interfaceContentsSPI
- Parameters:
engine
- The Engine that owns this page.name
- The name of the page.- Returns:
- new
Page
instance.
-