Examples of buildResult()


Examples of com.director.core.json.JsonParser.buildResult()

   public DirectTransactionResult execute(DirectAction directAction, DirectMethod directMethod, DirectTransactionData data)
         throws DirectException {
      Object[] params = directMethod.parseParameters(data);
      Object result = invokeActionMethod(action, directAction, directMethod, params);
      JsonParser parser = DirectContext.get().getConfiguration().getParser();
      return parser.buildResult(directMethod, result);
   }

   private Object invokeActionMethod(Object action, DirectAction directAction, DirectMethod directMethod, Object[] params) {
      try {
         return directMethod.getMethod().invoke(action, params);
View Full Code Here

Examples of com.director.core.json.JsonParser.buildResult()

   public DirectTransactionResult execute(DirectAction directAction, DirectMethod directMethod, DirectTransactionData data) throws DirectException {
      try {
         Class actionClass = directAction.getActionClass();
         Object result = directMethod.getMethod().invoke(actionClass.newInstance(), directMethod.parseParameters(data));
         JsonParser parser = DirectContext.get().getConfiguration().getParser();
         return parser.buildResult(directMethod, result);
      } catch(InvocationTargetException e) {
         String message = "Cannot invoke the action method " + directMethod + " of the direct class " + directAction;
         throw new DirectException(message, e.getTargetException());
      } catch(Throwable e) {
         String message = "Cannot invoke the action method " + directMethod + " of the direct class " + directAction;
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param3", "value 3")
            .addParam("anchor", "fragment")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap<String, Object>());
        assertNotNull(result);
    }
   
}
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param2", "value 2")
            .addParam("param3", "value 3")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap());
        assertNotNull(result);
    }
}
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param2", "value 2")
            .addParam("param3", "value 3")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap());
        assertNotNull(result);
    }
}
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param3", "value 3")
            .addParam("anchor", "fragment")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap<String, Object>());
        assertNotNull(result);
    }
   
}
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param2", "value 2")
            .addParam("param3", "value 3")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap());
        assertNotNull(result);
    }
}
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param3", "value 3")
            .addParam("anchor", "fragment")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap());
        assertNotNull(result);
    }
   
}
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param3", "value 3")
            .addParam("anchor", "fragment")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap<String, Object>());
        assertNotNull(result);
    }
   
}
View Full Code Here

Examples of com.opensymphony.xwork2.ObjectFactory.buildResult()

            .addParam("param3", "value 3")
            .addParam("anchor", "fragment")
            .build();

        ObjectFactory factory = container.getInstance(ObjectFactory.class);
        ServletActionRedirectResult result = (ServletActionRedirectResult) factory.buildResult(resultConfig, new HashMap<String, Object>());
        assertNotNull(result);
    }
   
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.