Examples of invoke()


Examples of nexj.core.rpc.CharacterStreamServer.invoke()

         {
            req = URLDecoder.decode((String)req, m_request.getCharacterEncoding());
         }

         // Enhance the request with data from parameters "file-<argIndex>-<dataAttr>-<fileNameAttr>"
         server.invoke(new StringReader((String)req), getWriter(), new Preprocessor()
         {
            public void preprocess(Request request)
            {
               addMultipartData(request, paramMap);
            }
View Full Code Here

Examples of nexj.core.rpc.Server.invoke()

      req.addInvocation(tobj);
      req.setCommit(false);

      // This should complete without throwing the err.runtime.transientCommit exception
      server.invoke(req);
   }
}
View Full Code Here

Examples of nexj.core.runtime.Instance.invoke()

      {
         instance.setValue("object", accessor);
         instance.setValue("event", event);
      }

      instance.invoke("create");
     
      return instance;
   }
}
View Full Code Here

Examples of nexj.core.scripting.Function.invoke()

         Function fun = machine.getGlobalEnvironment().findFunction(m_class, (Symbol)selector, nArgCount - 1);

         if (fun != null)
         {
            return fun.invoke(nArgCount, machine);
         }

         fun = m_class.resolveFunction((Symbol)selector, nArgCount - 1);

         if (fun != null)
View Full Code Here

Examples of nexj.core.scripting.Machine.invoke()

      if (sScript != null)
      {
         Intrinsic.load(sScript, machine);
      }

      final Pair spec = (Pair)machine.invoke(new Compiler().compile(
         new SchemeParser(machine.getGlobalEnvironment()).parse(new StringReader(sQuery), null),
         null, machine, true), (Pair)null);

      exportData(new Exporter()
      {
View Full Code Here

Examples of nexj.core.util.HTTPClient.invoke()

      request.addInvocation(tobj);
      request.setAsync(StringUtil.parseBoolean(getProperty("async", "0")));

      for (int nReq = 0; nReq < nReqCount; ++ nReq)
      {
         Object response = client.invoke(new URI(getProperty("url", "http://localhost:8080/nexj/text")), HTTP.METHOD_POST,
            new HTTPClient.RequestHandler()
            {
               public void handleRequest(HTTPClient client, OutputStream ostream) throws IOException
               {
                  Writer writer = new OutputStreamWriter(ostream, XMLUtil.ENCODING);
View Full Code Here

Examples of ninja.bodyparser.BodyParserEngine.invoke()

        if (bodyParserEngine == null) {
            logger.debug("No BodyParserEngine found for Content-Type {} at route {}", CONTENT_TYPE, getRequestPath());
            return null;
        }

        return bodyParserEngine.invoke(this, classOfT);

    }

    @Override
    public FlashScope getFlashCookie() {
View Full Code Here

Examples of ninja.template.TemplateEngine.invoke()

        TemplateEngine templateEngine = templateEngineManager
                .getTemplateEngineForContentType(result.getContentType());

        if (templateEngine != null) {

            templateEngine.invoke(context, result);

        } else {
            throw new NinjaException(
                    404,
                    "No template engine found for result content type "
View Full Code Here

Examples of nodebox.function.Function.invoke()

            Handle handle = null;

            if (getFunctionRepository().hasFunction(activeNode.getHandle())) {
                Function handleFunction = getFunctionRepository().getFunction(activeNode.getHandle());
                try {
                    handle = (Handle) handleFunction.invoke();
                } catch (Exception e) {
                    LOG.log(Level.WARNING, "Error while creating handle for " + activeNode, e);
                }
            }
View Full Code Here

Examples of ns.foundation._private._NSMethod.invoke()

  @SuppressWarnings("unchecked")
  public T invoke(Object target, Object... parameters) throws IllegalArgumentException, NoSuchMethodException, InvocationTargetException,
      IllegalAccessException {
    _NSMethod method = methodOnObject(target);
    return (T) method.invoke(target, parameters != null ? parameters : new Object[0]);
  }

  public T invoke(Object target) throws IllegalArgumentException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
    return invoke(target, _NoObjectArray);
  }
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.