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)); }
public static void renderPage(ImtWebContext imtWebContext) throws IOException { imtWebContext.setHtmlContentType(); imtWebContext.render(merge(imtWebContext, "/vm/page.vm")); }