本文整理汇总了Java中org.apache.wicket.protocol.http.WebApplication.mountPage方法的典型用法代码示例。如果您正苦于以下问题:Java WebApplication.mountPage方法的具体用法?Java WebApplication.mountPage怎么用?Java WebApplication.mountPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.protocol.http.WebApplication
的用法示例。
在下文中一共展示了WebApplication.mountPage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mountPages
import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
public void mountPages(WebApplication webApplication) {
// First section is mounted behind the base url (ie. /console/)
if (!menuSections.isEmpty()) {
webApplication.mountPage(getBaseUrl() + "/", menuSections.get(0).getPageClass());
}
// Each section is mounted with its items
for (ConsoleMenuSection menuSection : menuSections) {
mountMenuSection(menuSection, webApplication);
}
}
示例2: mountMenuSection
import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
private void mountMenuSection(ConsoleMenuSection menuSection, WebApplication webApplication) {
String menuSectionBaseUrl = getBaseUrl() + menuSection.getUrlFragment();
webApplication.mountPage(menuSectionBaseUrl + "/", menuSection.getPageClass());
for (ConsoleMenuItem menuItem : menuSection.getMenuItems()) {
webApplication.mountPage(menuSectionBaseUrl + menuItem.getUrlFragment() + "/", menuItem.getPageClass());
for (ConsoleMenuItemRelatedPage relatedPage : menuItem.getRelatedPages()) {
webApplication.mountPage(menuSectionBaseUrl + menuItem.getUrlFragment() + relatedPage.getUrlFragment()
+ "/", relatedPage.getPageClass());
}
}
}
示例3: init
import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
@Override
public void init(WebApplication webApplication) {
DebugPageManagerProvider pageManager = new DebugPageManagerProvider(webApplication);
webApplication.setPageManagerProvider(pageManager);
webApplication.mountPage(properties.getMountPage(), DiskStoreBrowserPage.class);
wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass())
.withDetail("properties", properties)
.build());
}
示例4: init
import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
@Override
public void init(WebApplication webApplication) {
if (properties.isEnableLiveSessionsPage()) {
webApplication.mountPage(properties.getLiveSessionPageMount(), LiveSessionsPage.class);
}
wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass())
.withDetail("properties", properties)
.build());
}
示例5: init
import org.apache.wicket.protocol.http.WebApplication; //导入方法依赖的package包/类
@Override
public void init(WebApplication webApplication) {
webApplication.getRequestCycleListeners().add(new JamonAwareRequestCycleListener(webApplication, prop.isIncludeSourceNameInMonitorLabel()));
webApplication.mountPage(prop.getMountPage(), BootJamonAdminPage.class);
}