Returns multiple request values for a name.

@param name name of multiple values from request.
@return multiple request values for a name.
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;
    }
640889
public List<String> params(String name) {
		List<String> values = queryParams.get(name);
		String value = pathParams.get(name);

		if (values == null) {
			return (value == null) ? Collections.<String>emptyList() : Collections.singletonList(value);
		}

		if (value == null) {
			return Collections.unmodifiableList(values);
		} else {
			List<String> aggregated = new ArrayList<String>(values.size() + 1);
			aggregated.addAll(values);
			aggregated.add(value);
			return Collections.unmodifiableList(aggregated);
		}
	}
1119531
public String getHeader( final String name ) {
        List<String> headerVals = getRequestInfo().getHeader(name);
        if( headerVals != null && !headerVals.isEmpty() ) {
            return headerVals.get(0);
        }
        return null;
    }
550540
public Object get(String name) throws JSONException {
		Object result = this.nameValuePairs.get(name);
		if (result == null) {
			throw new JSONException("No value for " + name);
		}
		return result;
	}
1092209
public List<String> values(String name) {
        List<String> result = null;
        for (int i = 0, size = size(); i < size; i++) {
            if (name.equalsIgnoreCase(name(i))) {
                if (result == null) result = new ArrayList<>(2);
                result.add(value(i));
            }
        }
        return result != null
                ? Collections.unmodifiableList(result)
                : Collections.<String>emptyList();
    }
189976
public String getString(String name) {

		Object value = get(name);
		if (value instanceof String ||
			value instanceof Boolean ||
			value instanceof Integer) {
			return value.toString();
		}

		if (value instanceof String[]) {
			String[] list = getStrings(name);
			return StringUtils.join(list, ",");
		}

		return get(name).toString();
	}
93750
public static List<String> get(String name, @Nullable String value) {
    return Args.stringWithEq(name, value);
  }
663079
private Set<String> getParameterAsSet(String name) {
        String[] values = getParameterValues(name);
        if (values == null) {
            return null;
        }

        Set<String> valueSet = new LinkedHashSet<>(values.length);
        Collections.addAll(valueSet, values);
        return valueSet;
    }
1204732
public List<String> getHeader(String name) {
        if (headers == null) {
            return null;
        }
        return headers.values(name);
    }
608835
public List getList(String name) {
        Object paramValues = get(name);
        if (paramValues == null) {
            return Collections.emptyList();
        }
        if (paramValues.getClass().isArray()) {
            return Arrays.asList((Object[])paramValues);
        }
        if (paramValues instanceof Collection) {
            return new ArrayList((Collection)paramValues);
        }
        return Collections.singletonList(paramValues);
    }
983995
@Override
    public String[] getParameterValues(String name) {
        ServletRESTRequestImpl ret = castRequest();
        if (ret != null)
            return ret.getParameterValues(name);
        return null;
    }
220592
public long getLong(String name)
    {
        long val = 0;
        try {
            val = Long.valueOf(request.getParameter(name));
        } catch (NumberFormatException e) {}
        
        return val;
    }
900928
public static String[] getStringArray(String name){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getStringArray(name);
        }
        return null;
    }
483254
@Override
    public List<String> headers(String name) {
        return request.headers().get(name);
    }
1221224
public static synchronized List<Object> getAttributes(final String name) {
		final List<Object> data = new ArrayList<>();

		for (final String id : SESSIONS.keySet()) {
			final HttpSession session = SESSIONS.get(id);
			try {
				final Object o = session.getAttribute(name);
				data.add(o);
				//CHECKSTYLE:OFF
			} catch (final Exception e) {
				// no data for this object.
			}
			//CHECKSTYLE:ON
		}

		return data;
	}
672812
public Object[] getValues(String name) {
        XtraTag tag = getTagByName(name);
        Object values[];
        if (tag != null) {
            values = new Object[tag.values.size()];
            for (int i = 0; i < tag.values.size(); i++) {
                values[i] = tag.values.elementAt(i).getValueAsObject();
            }
        } else {
            values = new Object[0];
        }
        return values;
    }
739172
public static List<String> get(String name, @Nullable Boolean value) {
    if (value == null) {
      return Collections.emptyList();
    }
    return Arrays.asList("--" + name + "=" + value.toString());
  }