public class StaticPageMountPointLoader extends Object implements IPathLoader
WebPage
object for each page. Default implementation assumes
all static pages loaded by this instance, share the same template.Constructor and Description |
---|
StaticPageMountPointLoader(String webAppRelativePathToStaticPages,
Class<? extends org.apache.wicket.markup.html.WebPage> staticPageTemplateClass) |
Modifier and Type | Method and Description |
---|---|
String |
getBasePagePath()
Prefix this to the URL's page path
|
String |
getFileTypesRegEx() |
List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> |
getLoadPoints() |
Class<? extends org.apache.wicket.markup.html.WebPage> |
getStaticPageTemplate() |
String |
getWebAppRelativePathToStaticPages() |
void |
load(org.apache.wicket.protocol.http.WebApplication application)
Allows us to inject interesting strategies on our own
WicketStuff MountPath Annotation
This is for situations of dynamic mount/load point generation and loading which may be assumed by the caller on the interface. |
void |
setBasePagePath(String basePagePath)
Prefix this to the URL's page path
|
void |
setFileTypesRegEx(String fileTypesRegEx)
File types that this static loader will consider as resources worth importing.
|
void |
setLoadPoints(List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> loadPoints) |
void |
setStaticPageTemplate(Class<? extends org.apache.wicket.markup.html.WebPage> staticPageTemplateClass) |
void |
setWebAppRelativePathToStaticPages(String webAppRelativePathToStaticPages) |
public String getWebAppRelativePathToStaticPages()
public void setWebAppRelativePathToStaticPages(String webAppRelativePathToStaticPages)
public Class<? extends org.apache.wicket.markup.html.WebPage> getStaticPageTemplate()
public void setStaticPageTemplate(Class<? extends org.apache.wicket.markup.html.WebPage> staticPageTemplateClass)
public String getFileTypesRegEx()
public void setFileTypesRegEx(String fileTypesRegEx)
public List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> getLoadPoints()
getLoadPoints
in interface IPathLoader
IRequestTargetUrlCodingStrategy
@nullable truepublic void setLoadPoints(List<org.apache.wicket.request.target.coding.IRequestTargetUrlCodingStrategy> loadPoints)
setLoadPoints
in interface IPathLoader
public String getBasePagePath()
public void setBasePagePath(String basePagePath)
public void load(org.apache.wicket.protocol.http.WebApplication application)
load
in interface IPathLoader
application
- as WebApplication
@Nuallble falseCopyright © 2018. All rights reserved.