Package org.jrest4guice.client

Examples of org.jrest4guice.client.ModelMap


      return;
    }

    Exception exception = null;

    ModelMap modelMap = RestContextManager.getModelMap();
    if (method != null) {
      try {
        Object[] args = null;
        // 构造参数集合
        if (!isRpc) {
          List params = constructParams(method, modelMap);
          args = params.size() > 0 ? params.toArray() : null;
        } else {
          byte[] bytes = (byte[]) modelMap.get(ModelMap.RPC_ARGS_KEY);
          ObjectInputStream obj_in = new ObjectInputStream(
              new ByteArrayInputStream(bytes));
          args = (Object[]) obj_in.readObject();
        }
View Full Code Here

TOP

Related Classes of org.jrest4guice.client.ModelMap

Copyright © 2018 www.massapicom. 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.