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