Exemple #1
0
 public static void renderMethodInvoke(ImtWebContext imtWebContext) throws IOException {
   imtWebContext.setHtmlContentType();
   Object ret =
       imtWebContext
           .getInterfaceManagementTool()
           .invoke(
               imtWebContext.getKey(), imtWebContext.getAdditionalData(), imtWebContext.getArgs());
   imtWebContext.render(JSON.toJSONString(ret));
 }
Exemple #2
0
 public static void renderPage(ImtWebContext imtWebContext) throws IOException {
   imtWebContext.setHtmlContentType();
   imtWebContext.render(merge(imtWebContext, "/vm/page.vm"));
 }