@Test public void hasParamTest() { final RequestMapper mapper = Routes.route().lookup("/v1/param/hello", RequestMethod.GET); Assert.assertNotNull(mapper); final Object hasParam = Components.invoke(mapper, MapBuilder.<String, Object> builder().put("param1", "world").build()); Assert.assertEquals(hasParam, "hello=world"); }
public static Object invoke(final RequestMapper mapper) { return invoke(mapper, Maps.newHashMap()); }
Components { public static Object invoke(final RequestMapper mapper) { return invoke(mapper, Maps.newHashMap()); } }
Components { public static Object invoke(final RequestMapper mapper) { return invoke(mapper, Maps.newHashMap()); } private  Components(); }
Components { public static Object invoke(final RequestMapper mapper) { return invoke(mapper, Maps.newHashMap()); } private  Components(); static final void load(); static final void reload(); static final void destroy(); @SuppressWarnings("deprecation") static final Object[] bindParam(final Method method, final Map<String, Object> params, final Object... objs); static Object invoke(final RequestMapper mapper); static final Object invoke(final RequestMapper mapper, final Map<String, Object> parameter, final Object... objs); }
Components { public static Object invoke(final RequestMapper mapper) { return invoke(mapper, Maps.newHashMap()); } private  Components(); static final void load(); static final void reload(); static final void destroy(); @SuppressWarnings("deprecation") static final Object[] bindParam(final Method method, final Map<String, Object> params, final Object... objs); static Object invoke(final RequestMapper mapper); static final Object invoke(final RequestMapper mapper, final Map<String, Object> parameter, final Object... objs);  }