Get a request parameter stripped of white space. Return null for zero
length.

@param req
@param name    name of parameter
@return  String   value
@throws Throwable
172947
protected String getReqPar(final HttpServletRequest req, final String name) throws Throwable {
    return Util.checkNull(req.getParameter(name));
  }
220592
public long getLong(String name)
    {
        long val = 0;
        try {
            val = Long.valueOf(request.getParameter(name));
        } catch (NumberFormatException e) {}
        
        return val;
    }
600023
public String getParameterIgnoreCase(String name) {
        for (Map.Entry<String, String[]> entry : customParameters.entrySet()) {
            if (entry.getKey().equalsIgnoreCase(name)) {
                return StringUtils.join(entry.getValue(), ",");
            }
        }
        return null;
    }
1246777
public String param(String name) {
		String pathValue = pathParams.get(name);
		return (pathValue == null) ? queryParam(name) : pathValue;
	}
301819
@Override
    public String header(String name) {
        List<String> list = request.headers().get(name);
        if (list != null && !list.isEmpty()) {
            return list.get(0);
        }
        return null;
    }
116666
public function getPost(string $name) : ?string
    {
        $r = null;
        if ($this->contentType === "multipart/form-data" ||
            $this->contentType === "application/x-www-form-urlencoded") {
            $r = ((isset($this->parsedBody[$name]) === true) ? (string)$this->parsedBody[$name] : null);
        }
        return $r;
    }
907058
String getRequiredInitParameter(String name) throws ServletException {
        String value = getInitParameter(name);
        if (value == null) {
            throw new ServletException(MessageFormat.format(nls.getString("Missing.required.initialization.parameter","Missing required initialization parameter: {0}"), new Object[]{name}));
        }

        return value;
    }
869251
@Override
    public String getParameter(String name) {
        ServletRESTRequestImpl ret = castRequest();
        if (ret != null)
            return ret.getParameter(name);
        return null;
    }
1331690
@Override
    public String getParameter(String name) {
        String[] vals = getParameterMap().get(name);

        return (vals != null && vals.length > 0) ? vals[0] : null;
    }
214750
static String getStringParam(HttpServletRequest req, String param, String defaultValue) {
    String value = req.getParameter(param);
    return (value == null || (value = value.trim()).isEmpty()) ? defaultValue : value;
  }
425421
public static List<String> params(String name){
        String[] values = RequestContext.getHttpRequest().getParameterValues(name);
        List<String>valuesList = null;
        if (name.equals("id")) {
            if(values.length == 1){
                valuesList = Collections.singletonList(values[0]);
            }else if(values.length > 1){
                valuesList = asList(values);
            }
        } else {
            valuesList = values == null? new ArrayList<String>() : list(values);
            String userSegment = RequestContext.getRequestVo().getUserSegments().get(name);
            if(userSegment != null){
                valuesList.add(userSegment);
            }
        }
        return valuesList;
    }
135934
public Boolean getBooleanReqPar(final String name) throws Throwable {
    String reqpar = getReqPar(name);

    if (reqpar == null) {
      return null;
    }

    try {
      if (reqpar.equalsIgnoreCase("yes")) {
        reqpar = "true";
      }

      return Boolean.valueOf(reqpar);
    } catch (Throwable t) {
      return null; // XXX exception?
    }
  }
160874
public static String getParameter(ServletRequest request, String name) {
    String s = request.getParameter(name);
    if (s == null) {
      return null;
    }
    s = s.trim();
    return s.length() == 0? null: s;
  }
524027
public String getParameter(String name) {

        String[] p = getParameterMap().get(name);
        if (p != null) {
            return p[0];
        }

        return null;
    }
677630
public function getRequestParameter($name, $raw = false)
    {
        $value = null;

        $value = $this->getPostParameter($name, $raw);
        if (!isset($value)) {
            $value = $this->getGetParameter($name, $raw);
        }

        return $value;
    }
1109692
public static String getCookieValue(HttpServletRequest req, String name) {
		if (StringUtils.isBlank(name) || req == null) {
			return null;
		}
		Cookie[] cookies = req.getCookies();
		if (cookies == null) {
			return null;
		}
		//Otherwise, we have to do a linear scan for the cookie.
		for (Cookie cookie : cookies) {
			if (cookie.getName().equals(name)) {
				return cookie.getValue();
			}
		}
		return null;
	}
694315
public static String getParam(String name) {
		String param = getServletRequest().getParameter(name);
		if(null == param){
			MultipartFormData multipart = getMultipart();
			if(null != multipart){
				param = multipart.getParam(param);
			}
		}
		return param;
	}