本文整理了Java中org.apache.wicket.Request.getParameterMap
方法的一些代码示例,展示了Request.getParameterMap
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getParameterMap
方法的具体详情如下:
包路径:org.apache.wicket.Request
类名称:Request
方法名:getParameterMap
[英]Gets a map of (query) parameters sent with the request.
[中]获取随请求发送的(查询)参数的映射。
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
parameterMap = this.request.getParameterMap();
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
parameterMap = this.request.getParameterMap();
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* @see org.apache.wicket.request.IRequestCodingStrategy#decode(org.apache.wicket.Request)
*/
public final RequestParameters decode(final Request request)
{
final RequestParameters parameters = new RequestParameters();
final String pathInfo = getRequestPath(request);
parameters.setPath(pathInfo);
parameters.setPageMapName(request.getParameter(PAGEMAP));
addInterfaceParameters(request, parameters);
addBookmarkablePageParameters(request, parameters);
addResourceParameters(request, parameters);
if (request.getParameter(IGNORE_IF_NOT_ACTIVE_PARAMETER_NAME) != null)
{
parameters.setOnlyProcessIfPathActive(true);
}
Map map = request.getParameterMap();
Iterator iterator = map.keySet().iterator();
while (iterator.hasNext())
{
String key = (String)iterator.next();
if (key.startsWith(NAME_SPACE))
{
iterator.remove();
}
}
parameters.setParameters(map);
return parameters;
}
代码示例来源:origin: org.wicketstuff/minis
Map<String, String[]> map = request.getParameterMap();
Iterator<String> iterator = map.keySet().iterator();
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
Map<String, String[]> map = request.getParameterMap();
Iterator<String> iterator = map.keySet().iterator();
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* Constructs a new instance of a page given its class name
*
* @param pageClass
* class name of the page to be created
* @param requestCycle
* request cycle
* @return new instance of page
*/
protected Page newPage(final Class pageClass, final RequestCycle requestCycle)
{
// Construct a new instance using the default page factory
IPageFactory pageFactory = requestCycle.getApplication().getSessionSettings()
.getPageFactory();
if (pageParameters == null || pageParameters.size() == 0)
{
return pageFactory.newPage(pageClass);
}
else
{
// Add bookmarkable params in for WICKET-400.
requestCycle.getRequest().getParameterMap().putAll(pageParameters);
return pageFactory.newPage(pageClass, pageParameters);
}
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
requestMap.putAll(pageParameters.toRequestParameters());
return pageFactory.newPage(pageClass, pageParameters);
代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui
@SuppressWarnings("unchecked")
@Override
protected void respond(final AjaxRequestTarget target) {
if (!lookupDropBehavior()) {
return;
}
final IModel draggedModel = getDragModel();
if (draggedModel == null) {
return;
}
final String targetId = getComponent().getRequest().getParameter("targetId");
final Map<String, String[]> parameters = getComponent().getRequest().getParameterMap();
getComponent().getPage().visitChildren(new DropPointVisitor() {
@Override
void visit(DropBehavior dropPoint) {
if (dropPoint.getComponentMarkupId().equals(targetId)) {
dropPoint.onDrop(draggedModel, parameters, target);
}
}
});
}
内容来源于网络,如有侵权,请联系作者删除!