本文整理汇总了Java中org.apache.wicket.request.mapper.parameter.IPageParametersEncoder类的典型用法代码示例。如果您正苦于以下问题:Java IPageParametersEncoder类的具体用法?Java IPageParametersEncoder怎么用?Java IPageParametersEncoder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPageParametersEncoder类属于org.apache.wicket.request.mapper.parameter包,在下文中一共展示了IPageParametersEncoder类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: encodePageParameters
import org.apache.wicket.request.mapper.parameter.IPageParametersEncoder; //导入依赖的package包/类
@Override
protected Url encodePageParameters(Url url, PageParameters pageParameters, IPageParametersEncoder encoder) {
//get special page parameter that encodes the page fragment/anchor
final StringValue fragment = pageParameters.get(FRAGMENT_PAGE_PARAMETER);
if (fragment.isEmpty()) {
//business as usual
return super.encodePageParameters(url, pageParameters, encoder);
} else {
//we have a fragment parameter, remove from normal parameters and do post-processing
pageParameters.remove(FRAGMENT_PAGE_PARAMETER);
final Url result = super.encodePageParameters(url, pageParameters, encoder);
//set the fragment on the resulting URL
result.setFragment(fragment.toString());
return result;
}
}
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:20,代码来源:FragmentEncodingMountedMapper.java
示例2: encodePageParameters
import org.apache.wicket.request.mapper.parameter.IPageParametersEncoder; //导入依赖的package包/类
@Override
protected Url encodePageParameters(Url url, PageParameters pageParameters, IPageParametersEncoder encoder) {
return new PathAwareUrl(super.encodePageParameters(url, pageParameters, encoder));
}
开发者ID:jmfgdev,项目名称:gitplex-mit,代码行数:5,代码来源:GitPlexPageMapper.java
示例3: ExactMatchMountedMapper
import org.apache.wicket.request.mapper.parameter.IPageParametersEncoder; //导入依赖的package包/类
public ExactMatchMountedMapper(String mountPath,
Class<? extends IRequestablePage> pageClass,
IPageParametersEncoder pageParametersEncoder) {
super(mountPath, pageClass, pageParametersEncoder);
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:6,代码来源:ExactMatchMountedMapper.java
示例4: FragmentEncodingMountedMapper
import org.apache.wicket.request.mapper.parameter.IPageParametersEncoder; //导入依赖的package包/类
public FragmentEncodingMountedMapper(String mountPath, Class<? extends IRequestablePage> pageClass, IPageParametersEncoder pageParametersEncoder) {
super(mountPath, pageClass, pageParametersEncoder);
}
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:4,代码来源:FragmentEncodingMountedMapper.java
示例5: PageParameterAwareMountedMapper
import org.apache.wicket.request.mapper.parameter.IPageParametersEncoder; //导入依赖的package包/类
public PageParameterAwareMountedMapper(String mountPath, Class<? extends IRequestablePage> pageClass,
IPageParametersEncoder pageParametersEncoder) {
super(mountPath, pageClass, pageParametersEncoder);
}
开发者ID:openwide-java,项目名称:owsi-core-parent,代码行数:5,代码来源:PageParameterAwareMountedMapper.java
示例6: NoVersionMountedMapper
import org.apache.wicket.request.mapper.parameter.IPageParametersEncoder; //导入依赖的package包/类
public NoVersionMountedMapper(String mountPath, Class<? extends IRequestablePage> pageClass,
IPageParametersEncoder pageParametersEncoder) {
super(mountPath, pageClass, pageParametersEncoder);
}
开发者ID:openwide-java,项目名称:owsi-core-parent,代码行数:5,代码来源:NoVersionMountedMapper.java
注:本文中的org.apache.wicket.request.mapper.parameter.IPageParametersEncoder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论