本文整理了Java中org.glassfish.grizzly.http.server.Request.getParameterValues
方法的一些代码示例,展示了Request.getParameterValues
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getParameterValues
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称:Request
方法名:getParameterValues
[英]Return the defined values for the specified request parameter, if any; otherwise, return null
.
[中]返回指定请求参数的定义值(如果有);否则,返回null
。
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
@Override
public String[] run() {
return request.getParameterValues(name);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public String[] run() {
return request.getParameterValues(name);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public String[] run() {
return request.getParameterValues(name);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public String[] run() {
return request.getParameterValues(name);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public String[] run() {
return request.getParameterValues(name);
}
}
代码示例来源:origin: javaee/grizzly
@Override
public String[] run() {
return request.getParameterValues(name);
}
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Return the defined values for the specified request parameter, if any;
* otherwise, return <code>null</code>.
*
* @param name Name of the desired request parameter
*/
@Override
public String[] getParameterValues(String name) {
/*
if (!requestParametersParsed) {
parseRequestParameters();
}
*/
processParameters();
return coyoteRequest.getParameterValues(name);
}
代码示例来源:origin: org.glassfish.main.core/kernel
/**
*
*/
private void logRequest(Request req) {
if (logger.isLoggable(Level.FINE)) {
logger.log(Level.FINE, "AdminConsoleAdapter''s STATE IS: {0}", getStateMsg());
logger.log(Level.FINE, "Current Thread: {0}", Thread.currentThread().getName());
for (final String name : req.getParameterNames()) {
final String values = Arrays.toString(req.getParameterValues(name));
logger.log(Level.FINE, "Parameter name: {0} values: {1}", new Object[]{name, values});
}
}
}
代码示例来源:origin: javaee/grizzly
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public String[] getParameterValues(String name) {
if (request == null) {
throw new IllegalStateException("Null request object");
}
String[] ret;
/*
* Clone the returned array only if there is a security manager
* in place, so that performance won't suffer in the nonsecure case
*/
if (System.getSecurityManager() != null){
ret = AccessController.doPrivileged(
new GetParameterValuePrivilegedAction(name));
if (ret != null) {
ret = ret.clone();
}
} else {
ret = request.getParameterValues(name);
}
return ret;
}
代码示例来源:origin: javaee/grizzly
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: javaee/grizzly
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: javaee/grizzly
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: javaee/grizzly
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: javaee/grizzly
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: javaee/grizzly
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: javaee/grizzly
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server
/**
* Returns a {@link java.util.Map} of the parameters of this request.
* Request parameters are extra information sent with the request.
* For HTTP servlets, parameters are contained in the query string
* or posted form data.
*
* @return A {@link java.util.Map} containing parameter names as keys
* and parameter values as map values.
*/
public Map<String,String[]> getParameterMap() {
if (parameterMap.isLocked())
return parameterMap;
for (final String name : getParameterNames()) {
final String[] values = getParameterValues(name);
parameterMap.put(name, values);
}
parameterMap.setLocked(true);
return parameterMap;
}
内容来源于网络,如有侵权,请联系作者删除!