/** * Get the names of all of the parameters. * * @return The parameter names */ @Override public Enumeration<String> getParameterNames() { return Collections.enumeration(getParameterMap().keySet()); }
/** * Get the names of all of the parameters. * * @return The parameter names */ @Override public Enumeration<String> getParameterNames() { return Collections.enumeration(getParameterMap().keySet()); }
/** * Get the request parameter with the given name. * * @param name * The parameter name * @return The parameter value, or null */ @Override public String getParameter(final String name) { String[] param = getParameterMap().get(name); if (param == null) { return null; } else { return param[0]; } }
/** * Get the request parameter with the given name. * * @param name * The parameter name * @return The parameter value, or null */ @Override public String getParameter(final String name) { String[] param = getParameterMap().get(name); if (param == null) { return null; } else { return param[0]; } }
/** * Get the values for the given parameter. * * @param name * The name of the parameter * @return The return values */ @Override public String[] getParameterValues(final String name) { Object value = getParameterMap().get(name); if (value == null) { return new String[0]; } if (value instanceof String[]) { return (String[])value; } else { String[] result = new String[1]; result[0] = value.toString(); return result; } }
/** * Get the values for the given parameter. * * @param name * The name of the parameter * @return The return values */ @Override public String[] getParameterValues(final String name) { Object value = getParameterMap().get(name); if (value == null) { return new String[0]; } if (value instanceof String[]) { return (String[])value; } else { String[] result = new String[1]; result[0] = value.toString(); return result; } }