本文整理汇总了Java中org.apache.wicket.request.mapper.parameter.PageParametersEncoder类的典型用法代码示例。如果您正苦于以下问题:Java PageParametersEncoder类的具体用法?Java PageParametersEncoder怎么用?Java PageParametersEncoder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PageParametersEncoder类属于org.apache.wicket.request.mapper.parameter包,在下文中一共展示了PageParametersEncoder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: urlStartsWithMountedSegments
import org.apache.wicket.request.mapper.parameter.PageParametersEncoder; //导入依赖的package包/类
/**
* We want to fully match url path. Parent class is OK with partial match and then
* marking other path element as page parameters.
*
* @param url
* @return
*/
@Override
protected boolean urlStartsWithMountedSegments(Url url) {
if (url == null) {
return false;
}
if (!(pageParametersEncoder instanceof PageParametersEncoder)) {
LOG.trace("Matching using standard mounted mapper for '{}'", url);
return super.urlStartsWithMountedSegments(url);
}
String mountUrl = StringUtils.join(mountSegments, "/");
boolean matched = url.getPath().equals(mountUrl);
LOG.trace("Matched: {} for '{}' with mount url '{}'", matched, url, mountUrl);
return matched;
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:25,代码来源:ExactMatchMountedMapper.java
示例2: init
import org.apache.wicket.request.mapper.parameter.PageParametersEncoder; //导入依赖的package包/类
@Override
public void init() {
super.init();
getJavaScriptLibrarySettings().setJQueryReference(
new PackageResourceReference(MidPointApplication.class,
"../../../../../webjars/adminlte/2.3.11/plugins/jQuery/jquery-2.2.3.min.js"));
GuiComponents.init();
getComponentInstantiationListeners().add(new SpringComponentInjector(this));
ResourceSettings resourceSettings = getResourceSettings();
resourceSettings.setParentFolderPlaceholder("$-$");
resourceSettings.setHeaderItemComparator(new PriorityFirstComparator(true));
SecurePackageResourceGuard guard = (SecurePackageResourceGuard) resourceSettings.getPackageResourceGuard();
guard.addPattern("+*.woff2");
List<IStringResourceLoader> resourceLoaders = resourceSettings.getStringResourceLoaders();
resourceLoaders.add(0, new Utf8BundleStringResourceLoader("localization/Midpoint"));
resourceLoaders.add(1, new Utf8BundleStringResourceLoader(SchemaConstants.SCHEMA_LOCALIZATION_PROPERTIES_RESOURCE_BASE_PATH));
resourceSettings.setThrowExceptionOnMissingResource(false);
getMarkupSettings().setStripWicketTags(true);
// getMarkupSettings().setDefaultBeforeDisabledLink("");
// getMarkupSettings().setDefaultAfterDisabledLink("");
if (RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) {
getDebugSettings().setAjaxDebugModeEnabled(true);
getDebugSettings().setDevelopmentUtilitiesEnabled(true);
initializeDevelopmentSerializers();
}
//pretty url for resources (e.g. images)
mountFiles(ImgResources.BASE_PATH, ImgResources.class);
//exception handling an error pages
ApplicationSettings appSettings = getApplicationSettings();
appSettings.setAccessDeniedPage(PageError401.class);
appSettings.setInternalErrorPage(PageError.class);
appSettings.setPageExpiredErrorPage(PageError.class);
mount(new MountedMapper("/error", PageError.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/401", PageError401.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/403", PageError403.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/404", PageError404.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/410", PageError410.class, new PageParametersEncoder()));
getRequestCycleListeners().add(new LoggingRequestCycleListener(this));
//descriptor loader, used for customization
new DescriptorLoader().loadData(this);
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:54,代码来源:MidPointApplication.java
示例3: NoVersionMapper
import org.apache.wicket.request.mapper.parameter.PageParametersEncoder; //导入依赖的package包/类
public NoVersionMapper(String mountPath, final Class<? extends IRequestablePage> pageClass) {
super(mountPath, pageClass, new PageParametersEncoder());
}
开发者ID:apache,项目名称:openmeetings,代码行数:4,代码来源:Application.java
示例4: init
import org.apache.wicket.request.mapper.parameter.PageParametersEncoder; //导入依赖的package包/类
@Override
public void init() {
super.init();
getJavaScriptLibrarySettings().setJQueryReference(
new PackageResourceReference(MidPointApplication.class,
"../../../../../webjars/adminlte/2.3.11/plugins/jQuery/jquery-2.2.3.min.js"));
getComponentInstantiationListeners().add(new SpringComponentInjector(this));
ResourceSettings resourceSettings = getResourceSettings();
resourceSettings.setParentFolderPlaceholder("$-$");
resourceSettings.setHeaderItemComparator(new PriorityFirstComparator(true));
SecurePackageResourceGuard guard = (SecurePackageResourceGuard) resourceSettings.getPackageResourceGuard();
guard.addPattern("+*.woff2");
List<IStringResourceLoader> resourceLoaders = resourceSettings.getStringResourceLoaders();
resourceLoaders.add(0, new MidPointStringResourceLoader(localizationService));
resourceSettings.setThrowExceptionOnMissingResource(false);
getMarkupSettings().setStripWicketTags(true);
if (RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) {
getDebugSettings().setAjaxDebugModeEnabled(true);
getDebugSettings().setDevelopmentUtilitiesEnabled(true);
initializeDevelopmentSerializers();
}
//pretty url for resources (e.g. images)
mountFiles(ImgResources.BASE_PATH, ImgResources.class);
//exception handling an error pages
ApplicationSettings appSettings = getApplicationSettings();
appSettings.setAccessDeniedPage(PageError401.class);
appSettings.setInternalErrorPage(PageError.class);
appSettings.setPageExpiredErrorPage(PageError.class);
mount(new MountedMapper("/error", PageError.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/401", PageError401.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/403", PageError403.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/404", PageError404.class, new PageParametersEncoder()));
mount(new MountedMapper("/error/410", PageError410.class, new PageParametersEncoder()));
getRequestCycleListeners().add(new LoggingRequestCycleListener(this));
getAjaxRequestTargetListeners().add(new AjaxRequestTarget.AbstractListener() {
@Override
public void updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior, AjaxRequestAttributes attributes) {
// check whether behavior will use POST method, if not then don't put CSRF token there
if (!isPostMethodTypeBehavior(behavior, attributes)) {
return;
}
CsrfToken csrfToken = SecurityUtils.getCsrfToken();
if (csrfToken == null) {
return;
}
String parameterName = csrfToken.getParameterName();
String value = csrfToken.getToken();
attributes.getExtraParameters().put(parameterName, value);
}
});
getSessionListeners().add((ISessionListener) asyncWebProcessManager);
//descriptor loader, used for customization
new DescriptorLoader().loadData(this);
// for schrodinger selenide library
initializeSchrodinger();
}
开发者ID:Evolveum,项目名称:midpoint,代码行数:75,代码来源:MidPointApplication.java
示例5: NoVersionMountMapper
import org.apache.wicket.request.mapper.parameter.PageParametersEncoder; //导入依赖的package包/类
public NoVersionMountMapper(String mountPath, final Class<? extends IRequestablePage> pageClass) {
super(mountPath, pageClass, new PageParametersEncoder());
}
开发者ID:nextreports,项目名称:nextreports-server,代码行数:4,代码来源:NoVersionMountMapper.java
注:本文中的org.apache.wicket.request.mapper.parameter.PageParametersEncoder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论