private Map < String , Class < ? > > getMethodParameters ( ) { final Map < String , Class < ? > > parameters = new LinkedHashMap <> ( ) ; for ( final Method declaredMethod : this . controllerClass . getDeclaredMethods ( ) ) { if ( declaredMethod . getName ( ) . equals ( this . controllerMethodName ) && declaredMethod . getParameterCount ( ) > 0 ) { Arrays . asList ( declaredMethod . getParameters ( ) ) . forEach ( parameter -> parameters . put ( parameter . getName ( ) , parameter . getType ( ) ) ) ; break ; } } return parameters ; }
Converts the method parameter of a mapped controller method to a map