Examples of respond()


Examples of ass3.program.core.message.Request.respond()

        }
      } catch (IllegalStateException e) {
        send(request.respondError(Response.ERROR_NO_AUTHORIZED));
        return;
      }
      send(request.respond());
    }
    if (received instanceof Response) {
      // Update State Machine
      Response resp = (Response) received;
      try {
View Full Code Here

Examples of com.mmoscene.h4j.network.sessions.Session.respond()

    public void setUpdate(boolean online) {
        for(Friend friend : friends.values()) {
            if (H4J.getNetwork().getSessionManager().getOnlineStatusById(friend.getId())) { //if online
                Session channel = H4J.getNetwork().getSessionManager().getSessionById(friend.getId());

                channel.respond(UpdateFriendStateMessageComposer.compose(online, this.user));
            }
        }
    }

    public boolean friendshipExists(int id) {
View Full Code Here

Examples of nexj.core.integration.Responder.respond()

                  throw new RPCException("err.rpc.notSender", new Object[]{channel.getName()});
               }

               Responder responder = (Responder)sender.getInstance(context);

               tobj = parse(responder.respond(format(tobj, (Sender)responder, context)), context);
            }
            else
            {
               // TODO: Implement message correlation and async send-receive
               throw new UnsupportedOperationException("Async send-receive not supported yet");
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.jingle.JingleSession.respond()

    backend.addListener(IQResultListener.class,new IQResultListener(){
      public void iqResult(InfoQuery iq) {
        for (JingleSession session : manager.getAllSessions()){
          try {
            session.respond(new Jingle(iq));
          } catch (XMPPException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
        }
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.jingle.JingleSession.respond()

      }else {
        JingleSession session = manager.getSession(sid);
        //TODO probably wrong check how to fix not sending session initiated second time
             
        try {
          if(session != null)session.respond(this);
        } catch (XMPPException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
View Full Code Here

Examples of org.apache.hadoop.test.mock.MockRequestMatcher.respond()

        gatewayPathQuery += param.getKey() + "=" + param.getValue();
      }
    }


    mockRequestMatcher.respond()
        .status( HttpStatus.SC_OK )
        .content( driver.getResourceBytes( resource ) )
        .contentType( contentType.toString() );

    given()
View Full Code Here

Examples of org.apache.mina.coap.resource.ResourceRegistry.respond()

            @Override
            public void messageReceived(IoSession session, Object message) {
                System.err.println("rcv : " + message);

                CoapMessage resp = reg.respond((CoapMessage) message, session);
                System.err.println("resp : " + resp);
                session.write(resp);
                count++;
                if (count >= 100_000) {
                    System.err.println("time for 100k msg : " + (System.currentTimeMillis() - start));
View Full Code Here

Examples of org.apache.wicket.IRequestHandler.respond()

  {
    IRequestHandler requestTarget = requestCycle.getRequestTarget();
    if (requestTarget != null)
    {
      Application.get().logResponseTarget(requestTarget);
      requestTarget.respond(requestCycle);
    }
  }

  /**
   * @see org.apache.wicket.request.IRequestCycleProcessor#respond(java.lang.RuntimeException,
View Full Code Here

Examples of org.apache.wicket.IRequestTarget.respond()

  {
    IRequestTarget requestTarget = requestCycle.getRequestTarget();
    if (requestTarget != null)
    {
      Application.get().logResponseTarget(requestTarget);
      requestTarget.respond(requestCycle);
    }
  }

  /**
   * @see org.apache.wicket.request.IRequestCycleProcessor#respond(java.lang.RuntimeException,
View Full Code Here

Examples of org.apache.wicket.IRequestTarget.respond()

  {
    IRequestTarget requestTarget = requestCycle.getRequestTarget();
    if (requestTarget != null)
    {
      Application.get().logResponseTarget(requestTarget);
      requestTarget.respond(requestCycle);
    }
  }

  /**
   * @see org.apache.wicket.request.IRequestCycleProcessor#respond(java.lang.RuntimeException,
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.