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 boolean isMethodInvoke(ImtWebContext imtWebContext) { return null != imtWebContext.getKey(); }
public static boolean isInitPage(ImtWebContext imtWebContext) { return !isResource(imtWebContext) && !isContent(imtWebContext) && null == trimToNull(imtWebContext.getKey()); }