/** * Gets the URL's parameter of the specified name. Note that if multiple * parameters have been specified with the same name, the last one will be * returned. * * @param name the name of the URL's parameter * @return the value of the URL's parameter, or null if missing */ public static String getParameter(String name) { ensureListParameterMap(); List<String> paramsForName = listParamMap.get(name); if (paramsForName == null) { return null; } else { return paramsForName.get(paramsForName.size() - 1); } }
/** * Gets the URL's parameter of the specified name. Note that if multiple * parameters have been specified with the same name, the last one will be * returned. * * @param name the name of the URL's parameter * @return the value of the URL's parameter, or null if missing */ public static String getParameter(String name) { ensureListParameterMap(); List<String> paramsForName = listParamMap.get(name); if (paramsForName == null) { return null; } else { return paramsForName.get(paramsForName.size() - 1); } }
/** * Gets the URL's parameter of the specified name. Note that if multiple * parameters have been specified with the same name, the last one will be * returned. * * @param name the name of the URL's parameter * @return the value of the URL's parameter, or null if missing */ public static String getParameter(String name) { ensureListParameterMap(); List<String> paramsForName = listParamMap.get(name); if (paramsForName == null) { return null; } else { return paramsForName.get(paramsForName.size() - 1); } }
/** * Returns an immutable Map of the URL query parameters for the host page * at the time this method was called. * Any changes to the window's location will be reflected in the result * of subsequent calls. * * @return a map from URL query parameter names to a list of values */ public static Map<String, List<String>> getParameterMap() { ensureListParameterMap(); return listParamMap; }
/** * Returns an immutable Map of the URL query parameters for the host page * at the time this method was called. * Any changes to the window's location will be reflected in the result * of subsequent calls. * * @return a map from URL query parameter names to a list of values */ public static Map<String, List<String>> getParameterMap() { ensureListParameterMap(); return listParamMap; }
/** * Returns an immutable Map of the URL query parameters for the host page * at the time this method was called. * Any changes to the window's location will be reflected in the result * of subsequent calls. * * @return a map from URL query parameter names to a list of values */ public static Map<String, List<String>> getParameterMap() { ensureListParameterMap(); return listParamMap; }