@Test public void returnsNullIfNotFound() { assertThat(vraptor.getParameter("minimum"), is(nullValue())); }
@Override public String getParameter(String name) { if (extraParameters.containsKey(name)) { String[] values = extraParameters.get(name); if (values.length == 1) { return values[0]; } else { return Arrays.toString(values); } } return super.getParameter(name); }
VRaptorRequest extends HttpServletRequestWrapper implements MutableRequest { @Override public String getParameter(String name) { if (extraParameters.containsKey(name)) { String[] values = extraParameters.get(name); if (values.length == 1) { return values[0]; } else { return Arrays.toString(values); } } return super.getParameter(name); } }
VRaptorRequest extends HttpServletRequestWrapper implements MutableRequest { @Override public String getParameter(String name) { if (extraParameters.containsKey(name)) { String[] values = extraParameters.get(name); if (values.length == 1) { return values[0]; } else { return Arrays.toString(values); } } return super.getParameter(name); } VRaptorRequest(HttpServletRequest request); }
VRaptorRequest extends HttpServletRequestWrapper implements MutableRequest { @Override public String getParameter(String name) { if (extraParameters.containsKey(name)) { String[] values = extraParameters.get(name); if (values.length == 1) { return values[0]; } else { return Arrays.toString(values); } } return super.getParameter(name); } VRaptorRequest(HttpServletRequest request); @Override String getParameter(String name); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Enumeration getParameterNames(); @Override String[] getParameterValues(String name); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Map getParameterMap(); void setParameter(String key, String... value); @Override String toString(); }
VRaptorRequest extends HttpServletRequestWrapper implements MutableRequest { @Override public String getParameter(String name) { if (extraParameters.containsKey(name)) { String[] values = extraParameters.get(name); if (values.length == 1) { return values[0]; } else { return Arrays.toString(values); } } return super.getParameter(name); } VRaptorRequest(HttpServletRequest request); @Override String getParameter(String name); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Enumeration getParameterNames(); @Override String[] getParameterValues(String name); @SuppressWarnings({ "unchecked", "rawtypes" }) @Override Map getParameterMap(); void setParameter(String key, String... value); @Override String toString();  }