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

x33g5p2x  于2022-01-28 转载在 其他  
字(8.0k)|赞(0)|评价(0)|浏览(167)

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

Request.getQueryParameters介绍

暂无

代码示例

代码示例来源:origin: apache/wicket

/**
 * @return all request parameters for this request (both POST and GET parameters)
 */
public IRequestParameters getRequestParameters()
{
  return new CombinedRequestParametersAdapter(getPostParameters(), getQueryParameters());
}

代码示例来源:origin: org.apache.wicket/wicket-request

/**
 * @return all request parameters for this request (both POST and GET parameters)
 */
public IRequestParameters getRequestParameters()
{
  return new CombinedRequestParametersAdapter(getPostParameters(), getQueryParameters());
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

/**
 * Indicates whether the query contains the specified parameter
 *
 * @param name the name of the query parameter
 * @return {@code true} if the parameter is found
 */
public static boolean hasQueryParameter(final String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterNames().stream().anyMatch(name::equals);
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Indicates whether the query contains the specified parameter
 *
 * @param name the name of the query parameter
 * @return {@code true} if the parameter is found
 */
public static boolean hasQueryParameter(final String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterNames().stream().anyMatch(name::equals);
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/jquery-ui-core

/**
 * Gets the value of a query parameter
 * @param name the name of the query parameter
 * @return a {@link StringValue}
 */
public static StringValue getQueryParameterValue(String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterValue(name);
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Gets the value of a query parameter
 *
 * @param name the name of the query parameter
 * @return a {@link StringValue}
 */
public static StringValue getQueryParameterValue(String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterValue(name);
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

/**
 * Gets the value of a query parameter
 *
 * @param name the name of the query parameter
 * @return a {@link StringValue}
 */
public static StringValue getQueryParameterValue(String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterValue(name);
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

/**
 * Gets the values of a query parameter
 *
 * @param name the name of the query parameter
 * @return a {@link List} of {@link StringValue}
 */
public static List<StringValue> getQueryParameterValues(String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterValues(name);
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/jquery-ui-core

/**
 * Gets the values of a query parameter
 * @param name the name of the query parameter
 * @return a {@link List} of {@link StringValue}
 */
public static List<StringValue> getQueryParameterValues(String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterValues(name);
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
 * Gets the values of a query parameter
 *
 * @param name the name of the query parameter
 * @return a {@link List} of {@link StringValue}
 */
public static List<StringValue> getQueryParameterValues(String name)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();
  return parameters.getParameterValues(name);
}

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

@Override
protected void respond(AjaxRequestTarget target)
{
  Request req = RequestCycle.get().getRequest();
  onResizeStop(target, req.getQueryParameters().getParameterValue("height").toInt(),
    req.getQueryParameters().getParameterValue("width").toInt());
}

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

@Override
public final void respond(AjaxRequestTarget target)
{
  Request req = RequestCycle.get().getRequest();
  onDrop(req.getQueryParameters().getParameterValue("src").toString(),
    req.getQueryParameters().getParameterValue("dest").toString(), target);
}

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

@Override
protected void respond(AjaxRequestTarget target)
{
  final Request req = RequestCycle.get().getRequest();
  final String handleId = req.getQueryParameters().getParameterValue("handleId").toString();
  final int newValue = req.getQueryParameters().getParameterValue("value").toInt(-1);
  getSlider().onChange(target, handleId, newValue);
}

代码示例来源:origin: micromata/projectforge

/**
 * @see org.apache.wicket.ajax.AbstractDefaultAjaxBehavior#respond(org.apache.wicket.ajax.AjaxRequestTarget)
 */
@Override
protected void respond(final AjaxRequestTarget target)
{
 final RequestCycle requestCycle = RequestCycle.get();
 final org.apache.wicket.util.string.StringValue val = requestCycle.getRequest().getQueryParameters().getParameterValue("q");
 onRequest(val != null ? val.toString() : null, requestCycle);
}

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

@Override
protected void respond(AjaxRequestTarget target)
{
  final StringValue componentId = RequestCycle.get()
    .getRequest()
    .getQueryParameters()
    .getParameterValue(HistoryAjaxBehavior.HISTORY_ITEM_PARAM);
  onAjaxHistoryEvent(target, componentId.toString());
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core

/**
   * {@inheritDoc}<br>
   * <br>
   * <b>Warning:</b> Overridden methods should call {@code super.onRequest()}
   */
  @Override
  public void onRequest()
  {
    RequestCycle requestCycle = RequestCycle.get();
    IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();

    requestCycle.scheduleRequestHandlerAfterCurrent(new TextRequestHandler(this.mimetype, this.encoding, this.getResponse(parameters)));
  }
}

代码示例来源:origin: sebfz1/wicket-jquery-ui

/**
   * {@inheritDoc}<br>
   * <br>
   * <b>Warning:</b> Overridden methods should call {@code super.onRequest()}
   */
  @Override
  public void onRequest()
  {
    RequestCycle requestCycle = RequestCycle.get();
    IRequestParameters parameters = requestCycle.getRequest().getQueryParameters();

    requestCycle.scheduleRequestHandlerAfterCurrent(new TextRequestHandler(this.mimetype, this.encoding, this.getResponse(parameters)));
  }
}

代码示例来源:origin: com.googlecode.wicket-jquery-ui/jquery-ui-core

@Override
protected void respond(AjaxRequestTarget target)
{
  final RequestCycle requestCycle = RequestCycle.get();
  final String value = requestCycle.getRequest().getQueryParameters().getParameterValue(QUERY).toString();
  final IRequestHandler handler = this.newRequestHandler(value);
  requestCycle.scheduleRequestHandlerAfterCurrent(handler);
}

代码示例来源:origin: OrienteerBAP/Orienteer

@Override
public void restartResponseAtSignInPage() {
  //This is required because home page is dynamic and depends on assigned perspective.
  if(RequestCycle.get().getRequest().getQueryParameters().getParameterValue(HomePage.FROM_HOME_PARAM).toBoolean(false)) {
    throw new RestartResponseException(getSignInPageClass());
  } else super.restartResponseAtSignInPage();
}

代码示例来源:origin: micromata/projectforge

@Override
 protected void respond(final AjaxRequestTarget target)
 {
  // Gather query params ?...&content=kssel
  final StringValue contentValue = RequestCycle.get().getRequest().getQueryParameters().getParameterValue(CONTENT);
  if (contentValue != null) {
   final String contentString = contentValue.toString();
   if (getForm() instanceof AutoCompleteIgnoreForm) {
    ((AutoCompleteIgnoreForm) getForm()).ignore(PFAutoCompleteTextField.this, contentString);
   } // else { just ignore }
  }
 }
};

相关文章