本文整理汇总了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;
}
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}