Examples of invoke()


Examples of org.nutz.mvc.impl.ActionInvoker.invoke()

    ActionInvoker invoker = mapping.get(ac);
    if (null == invoker)
      return false;

    return invoker.invoke(ac);
  }

  public void depose() {
    loading.depose(config);
  }
View Full Code Here

Examples of org.objectweb.celtix.bindings.ServerDataBindingCallback.invoke()

    public void doCeltixInvocation(DataBindingCallback callback, ObjectMessageContext objectCtx) {
        try {
            ServerDataBindingCallback method = (ServerDataBindingCallback) callback;
            new WebServiceContextImpl(objectCtx);
            method.invoke(objectCtx);
        } catch (WebServiceException ex) {
            Throwable cause = ex.getCause();
            if (cause != null) {
                objectCtx.setException(cause);
            } else {
View Full Code Here

Examples of org.objectweb.celtix.bus.bindings.soap.SOAPClientBinding.invoke()

        // bus.getBindingManager().getBindingFactory(bindingId).createClientBinding(reference)
        SOAPClientBinding clientBinding = EasyMock
            .createMock(SOAPClientBinding.class);
        clientBinding.createObjectContext();
        EasyMock.expectLastCall().andReturn(inputCtx);
        clientBinding.invoke(EasyMock.isA(ObjectMessageContextImpl.class),
            EasyMock.isA(SCADataBindingCallback.class));
        EasyMock.expectLastCall().andReturn(new ObjectMessageContextImpl());
        EasyMock.replay(clientBinding);

        SOAPBindingFactory bindingFactory = EasyMock.createNiceMock(SOAPBindingFactory.class);
View Full Code Here

Examples of org.objectweb.celtix.transports.ClientTransport.invoke()

        try {
            OutputStreamMessageContext octx = client.createOutputStreamContext(new GenericMessageContext());
            client.finalPrepareOutputStreamContext(octx);
            octx.getOutputStream().write(outBytes);
            octx.getOutputStream().close();
            InputStreamMessageContext ictx = client.invoke(octx);
            byte bytes[] = new byte[10000];
            int len = ictx.getInputStream().read(bytes);
            if (len != -1
                && new String(bytes, 0, len).indexOf("HTTP Status 503") == -1
                && new String(bytes, 0, len).indexOf("Error 404") == -1) {
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.GetProxyIdListNot.invoke()

      if (status == INIT) {
        // Clean the proxies
        GetProxyIdListNot gpin = new GetProxyIdListNot();
        AgentId[] proxyIds;
        try {
          gpin.invoke(AdminTopic.getDefault());
          proxyIds = gpin.getIds();
          ResetCollocatedConnectionsNot rccn = new ResetCollocatedConnectionsNot();
          for (int i = 0; i < proxyIds.length; i++) {
            Channel.sendTo(proxyIds[i], rccn);
          }
View Full Code Here

Examples of org.objectweb.joram.mom.notifications.GetProxyIdNot.invoke()

      }

      GetProxyIdNot gpin = new GetProxyIdNot(identity, inaddr);
      AgentId proxyId;
      try {
        gpin.invoke(AdminTopic.getDefault());
        proxyId = gpin.getProxyId();
      } catch (Exception exc) {
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, "", exc);
        failedLoginCount++;
View Full Code Here

Examples of org.objectweb.joram.mom.proxies.GetConnectionNot.invoke()

        nos.send();
        ioctrl = new IOControl(sock);
      } else {
        GetConnectionNot gcn = new GetConnectionNot(key);
        try {
          gcn.invoke(proxyId);
        } catch (Exception exc) {
          if (logger.isLoggable(BasicLevel.DEBUG))
            logger.log(BasicLevel.DEBUG, "", exc);
          StreamUtil.writeTo(1, nos);
          StreamUtil.writeTo(exc.getMessage(), nos);
View Full Code Here

Examples of org.objectweb.joram.mom.proxies.OpenConnectionNot.invoke()

      IOControl ioctrl;
      ReliableConnectionContext ctx;
      if (key == -1) {
        OpenConnectionNot ocn = new OpenConnectionNot(true, heartBeat);
        ocn.invoke(proxyId);
        StreamUtil.writeTo(0, nos);
        ctx = (ReliableConnectionContext) ocn.getConnectionContext();
        key = ctx.getKey();
        StreamUtil.writeTo(key, nos);
        nos.send();
View Full Code Here

Examples of org.ofbiz.webapp.event.EventHandler.invoke()

    /** Find the event handler and invoke an event. */
    public String runEvent(HttpServletRequest request, HttpServletResponse response,
            ConfigXMLReader.Event event, ConfigXMLReader.RequestMap requestMap, String trigger) throws EventHandlerException {
        EventHandler eventHandler = eventFactory.getEventHandler(event.type);
        String eventReturn = eventHandler.invoke(event, requestMap, request, response);
        if (Debug.verboseOn() || (Debug.infoOn() && "request".equals(trigger))) Debug.logInfo("Ran Event [" + event.type + ":" + event.path + "#" + event.invoke + "] from [" + trigger + "], result is [" + eventReturn + "]", module);
        return eventReturn;
    }

    /** Returns the default error page for this request. */
 
View Full Code Here

Examples of org.omg.CORBA.Request.invoke()

                            EasyMock.isA(NVList.class),
                            EasyMock.isA(NamedValue.class),
                            EasyMock.isA(ExceptionList.class),
                            EasyMock.isA(ContextList.class)));
        EasyMock.expectLastCall().andReturn(r);
        r.invoke();
        EasyMock.expectLastCall();
       
        control.replay();
        Request request = conduit.getRequest(message, "greetMe", nvList, ret, exList);
        request.invoke();
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.