@Test(expected=IllegalArgumentException.class) public void shouldThrowExceptionWhenThereIsAParameterContainingDotClass() throws Exception { when(request.getParameterNames()).thenReturn(Collections.enumeration(Arrays.asList("someParam.class.id", "unrelatedParam"))); when(request.getParameterValues("someParam.class.id")).thenReturn(new String[] {"whatever"}); instantiator.intercept(stack, method, null); }
public void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException { Enumeration<String> names = request.getParameterNames(); while (names.hasMoreElements()) { fixParameter(names.nextElement()); } addHeaderParametersToAttribute(method); Object[] values = getParametersFor(method); validator.addAll(errors); if (!errors.isEmpty()) { logger.debug("There are conversion errors: {}", errors); } logger.debug("Parameter values for {} are {}", method, values); parameters.setParameters(values); stack.next(method, resourceInstance); }
ParametersInstantiatorInterceptor implements Interceptor { public void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException { Enumeration<String> names = request.getParameterNames(); while (names.hasMoreElements()) { fixParameter(names.nextElement()); } addHeaderParametersToAttribute(method); Object[] values = getParametersFor(method); validator.addAll(errors); if (!errors.isEmpty()) { logger.debug("There are conversion errors: {}", errors); } logger.debug("Parameter values for {} are {}", method, values); parameters.setParameters(values); stack.next(method, resourceInstance); } }
ParametersInstantiatorInterceptor implements Interceptor { public void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException { Enumeration<String> names = request.getParameterNames(); while (names.hasMoreElements()) { fixParameter(names.nextElement()); } addHeaderParametersToAttribute(method); Object[] values = getParametersFor(method); validator.addAll(errors); if (!errors.isEmpty()) { logger.debug("There are conversion errors: {}", errors); } logger.debug("Parameter values for {} are {}", method, values); parameters.setParameters(values); stack.next(method, resourceInstance); } ParametersInstantiatorInterceptor(ParametersProvider provider, ParameterNameProvider parameterNameProvider, MethodInfo parameters,
		Validator validator, Localization localization, MutableRequest request, FlashScope flash); }
ParametersInstantiatorInterceptor implements Interceptor { public void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException { Enumeration<String> names = request.getParameterNames(); while (names.hasMoreElements()) { fixParameter(names.nextElement()); } addHeaderParametersToAttribute(method); Object[] values = getParametersFor(method); validator.addAll(errors); if (!errors.isEmpty()) { logger.debug("There are conversion errors: {}", errors); } logger.debug("Parameter values for {} are {}", method, values); parameters.setParameters(values); stack.next(method, resourceInstance); } ParametersInstantiatorInterceptor(ParametersProvider provider, ParameterNameProvider parameterNameProvider, MethodInfo parameters,
		Validator validator, Localization localization, MutableRequest request, FlashScope flash); boolean accepts(ResourceMethod method); void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance); }
ParametersInstantiatorInterceptor implements Interceptor { public void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException { Enumeration<String> names = request.getParameterNames(); while (names.hasMoreElements()) { fixParameter(names.nextElement()); } addHeaderParametersToAttribute(method); Object[] values = getParametersFor(method); validator.addAll(errors); if (!errors.isEmpty()) { logger.debug("There are conversion errors: {}", errors); } logger.debug("Parameter values for {} are {}", method, values); parameters.setParameters(values); stack.next(method, resourceInstance); } ParametersInstantiatorInterceptor(ParametersProvider provider, ParameterNameProvider parameterNameProvider, MethodInfo parameters,
		Validator validator, Localization localization, MutableRequest request, FlashScope flash); boolean accepts(ResourceMethod method); void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance);  }