org.simpleframework.http.Request.getParameter()方法的使用及代码示例

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

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

Request.getParameter介绍

[英]This is used to provide quick access to the parameters. This avoids having to acquire the request Form object. This basically acquires the parameters object and invokes the getParameters method with the given name.
[中]这用于提供对参数的快速访问。这避免了必须获取请求Form对象。这基本上获取parameters对象,并用给定的名称调用getParameters方法。

代码示例

代码示例来源:origin: org.simpleframework/simple

/**
* This is used to provide quick access to the parameters. This
* avoids having to acquire the request <code>Form</code> object.
* This basically acquires the parameters object and invokes 
* the <code>getParameters</code> method with the given name.
* 
* @param name this is the name of the parameter value      
*/   
public String getParameter(String name) {
 return request.getParameter(name);
}

代码示例来源:origin: org.simpleframework/simple-http

/**
* This is used to provide quick access to the parameters. This
* avoids having to acquire the request <code>Form</code> object.
* This basically acquires the parameters object and invokes 
* the <code>getParameters</code> method with the given name.
* 
* @param name this is the name of the parameter value      
*/   
public String getParameter(String name) {
 return request.getParameter(name);
}

代码示例来源:origin: ngallagher/simpleframework

/**
* This is used to provide quick access to the parameters. This
* avoids having to acquire the request <code>Form</code> object.
* This basically acquires the parameters object and invokes 
* the <code>getParameters</code> method with the given name.
* 
* @param name this is the name of the parameter value      
*/   
public String getParameter(String name) {
 return request.getParameter(name);
}

代码示例来源:origin: lantunes/fixd

public String getRequestParameter(String name) {
  
  return request.getParameter(name);
}

代码示例来源:origin: opendedup/sdfs

byte[] rb = com.google.common.io.BaseEncoding.base64Url().decode(request.getParameter("data"));
    byte[] rslt = new BatchGetBlocksCmd().getResult(rb);
    long time = System.currentTimeMillis();
  response.getByteChannel().close();
} else if (request.getTarget().startsWith(BATCH_BLOCK_PATH)) {
  byte[] rb = com.google.common.io.BaseEncoding.base64Url().decode(request.getParameter("data"));
  byte[] rslt = new BatchGetBlocksCmd().getResult(rb);
  long time = System.currentTimeMillis();
  response.getByteChannel().close();
} else if (request.getTarget().startsWith(BATCH_BLOCK_POINTER)) {
  byte[] rb = com.google.common.io.BaseEncoding.base64Url().decode(request.getParameter("data"));
  byte[] rslt = new BatchGetPointerCmd().getResult(rb);
  long time = System.currentTimeMillis();

相关文章