org.apache.wicket.Request.getParameterMap()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(239)

本文整理了Java中org.apache.wicket.Request.getParameterMap方法的一些代码示例,展示了Request.getParameterMap的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getParameterMap方法的具体详情如下:
包路径:org.apache.wicket.Request
类名称:Request
方法名:getParameterMap

Request.getParameterMap介绍

[英]Gets a map of (query) parameters sent with the request.
[中]获取随请求发送的(查询)参数的映射。

代码示例

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

  1. parameterMap = this.request.getParameterMap();

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

  1. parameterMap = this.request.getParameterMap();

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

  1. /**
  2. * @see org.apache.wicket.request.IRequestCodingStrategy#decode(org.apache.wicket.Request)
  3. */
  4. public final RequestParameters decode(final Request request)
  5. {
  6. final RequestParameters parameters = new RequestParameters();
  7. final String pathInfo = getRequestPath(request);
  8. parameters.setPath(pathInfo);
  9. parameters.setPageMapName(request.getParameter(PAGEMAP));
  10. addInterfaceParameters(request, parameters);
  11. addBookmarkablePageParameters(request, parameters);
  12. addResourceParameters(request, parameters);
  13. if (request.getParameter(IGNORE_IF_NOT_ACTIVE_PARAMETER_NAME) != null)
  14. {
  15. parameters.setOnlyProcessIfPathActive(true);
  16. }
  17. Map map = request.getParameterMap();
  18. Iterator iterator = map.keySet().iterator();
  19. while (iterator.hasNext())
  20. {
  21. String key = (String)iterator.next();
  22. if (key.startsWith(NAME_SPACE))
  23. {
  24. iterator.remove();
  25. }
  26. }
  27. parameters.setParameters(map);
  28. return parameters;
  29. }

代码示例来源:origin: org.wicketstuff/minis

  1. Map<String, String[]> map = request.getParameterMap();
  2. Iterator<String> iterator = map.keySet().iterator();

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

  1. Map<String, String[]> map = request.getParameterMap();
  2. Iterator<String> iterator = map.keySet().iterator();

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

  1. /**
  2. * Constructs a new instance of a page given its class name
  3. *
  4. * @param pageClass
  5. * class name of the page to be created
  6. * @param requestCycle
  7. * request cycle
  8. * @return new instance of page
  9. */
  10. protected Page newPage(final Class pageClass, final RequestCycle requestCycle)
  11. {
  12. // Construct a new instance using the default page factory
  13. IPageFactory pageFactory = requestCycle.getApplication().getSessionSettings()
  14. .getPageFactory();
  15. if (pageParameters == null || pageParameters.size() == 0)
  16. {
  17. return pageFactory.newPage(pageClass);
  18. }
  19. else
  20. {
  21. // Add bookmarkable params in for WICKET-400.
  22. requestCycle.getRequest().getParameterMap().putAll(pageParameters);
  23. return pageFactory.newPage(pageClass, pageParameters);
  24. }
  25. }

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

  1. final Map<String, String[]> requestMap = requestCycle.getRequest().getParameterMap();
  2. requestMap.putAll(pageParameters.toRequestParameters());
  3. return pageFactory.newPage(pageClass, pageParameters);

代码示例来源:origin: org.onehippo.cms7/hippo-cms-yui

  1. @SuppressWarnings("unchecked")
  2. @Override
  3. protected void respond(final AjaxRequestTarget target) {
  4. if (!lookupDropBehavior()) {
  5. return;
  6. }
  7. final IModel draggedModel = getDragModel();
  8. if (draggedModel == null) {
  9. return;
  10. }
  11. final String targetId = getComponent().getRequest().getParameter("targetId");
  12. final Map<String, String[]> parameters = getComponent().getRequest().getParameterMap();
  13. getComponent().getPage().visitChildren(new DropPointVisitor() {
  14. @Override
  15. void visit(DropBehavior dropPoint) {
  16. if (dropPoint.getComponentMarkupId().equals(targetId)) {
  17. dropPoint.onDrop(draggedModel, parameters, target);
  18. }
  19. }
  20. });
  21. }

相关文章