Examples of sendRequest()


Examples of com.maverick.multiplex.MultiplexedConnection.sendRequest()

            HashSet<Integer> activeTunnelIds = new HashSet<Integer>();

            // The agent keeps track of 'local' tunnels

            Request request = new Request(ACTIVE_LOCAL_TUNNELS);
            if (tunnel.sendRequest(request, true) && request.getRequestData()!=null) {

                ByteArrayReader reader = new ByteArrayReader(request.getRequestData());
                int count = (int) reader.readInt();
                for (int i = 0; i < count; i++) {
                    activeTunnelIds.add(new Integer((int) reader.readInt()));
View Full Code Here

Examples of com.moneychanger.core.util.OTAPI_Func.SendRequest()

        }

        OTAPI_Func theRequest = new OTAPI_Func(OTAPI_Func.FT.SEND_USER_INSTRUMENT, serverID, senderNymID, recepientNymID, pubKey, plan);
        System.out.println(" theRequest :" + theRequest);

        String strResponse = theRequest.SendRequest(theRequest, "SEND_USER_INSTRUMENT");
        System.out.println(" strResponse:" + strResponse);

        if (Utility.VerifyStringVal(strResponse)) {
            status = true;
        }
View Full Code Here

Examples of com.webobjects.appserver.WOHTTPConnection.sendRequest()

      aRequest = new WORequest(MObject._GET, RemoteBrowseClient.getPathString, MObject._HTTP1, aHeadersDict,
          null, null);
      anHTTPConnection.setReceiveTimeout(5000);

      requestSucceeded = anHTTPConnection.sendRequest(aRequest);

      if (requestSucceeded) {
        aResponse = anHTTPConnection.readResponse();
      }
View Full Code Here

Examples of ie.omk.smpp.Connection.sendRequest()

    SubmitSM submitSM = (SubmitSM) connection.newInstance(SMPPPacket.SUBMIT_SM);
    submitSM.setDestination(new Address(0, 0, "573001111111"));
    submitSM.setSource(new Address(0, 0, "3542"));
    submitSM.setMessageText("This is a test");

    SubmitSMResp response = (SubmitSMResp) connection.sendRequest(submitSM);
    Assert.assertNotNull(response);
    Assert.assertTrue(response.getMessageId() != null);

    Assert.assertEquals(messageProducer.messageCount(), 1);
    Message message = messageProducer.getMessage(0);
View Full Code Here

Examples of io.undertow.client.ClientConnection.sendRequest()

            connection.getIoThread().execute(new Runnable() {
                @Override
                public void run() {
                    for (int i = 0; i < 10; i++) {
                        final ClientRequest request = new ClientRequest().setMethod(Methods.GET).setPath("/");
                        connection.sendRequest(request, createClientCallback(responses, latch));
                    }
                }

            });
View Full Code Here

Examples of io.undertow.http2.tests.framework.Http2Client.sendRequest()

public class ALPNConnectionEstablishmentTestCase {

    @Test
    public void testConnectionEstablished() throws IOException {
        Http2Client connection = TestEnvironment.connectViaAlpn();
        HttpResponse response = connection.sendRequest(new ClientRequest());
        Assert.assertEquals(StatusCodes.OK, response.getStatus());

    }

}
View Full Code Here

Examples of javax.sip.ClientTransaction.sendRequest()

                    // We will test if the CSEq validation is off by sending CSeq 1 again

                    ClientTransaction ct = provider
                    .getNewClientTransaction(messageRequest);
                    cseq.setSeqNumber(1);
                    ct.sendRequest();

                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
View Full Code Here

Examples of javax.sip.Dialog.sendRequest()

    }
     
      Request byeRequest;
      try {
        byeRequest = dialog.createRequest(Request.BYE);
        dialog.sendRequest(sipProvider.getNewClientTransaction(byeRequest));
      } catch (SipException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
     
View Full Code Here

Examples of javax.sip.SipProvider.sendRequest()

                // Remove the topmost route header
                // The route header will make sure it gets to the right place.
                logger.info("proxy: Got a request " + request.getMethod());
                Request newRequest = (Request) request.clone();
                newRequest.removeFirst(RouteHeader.NAME);
                sipProvider.sendRequest(newRequest);
            }

        } catch (Exception ex) {
            ex.printStackTrace();
            System.exit(0);
View Full Code Here

Examples of jodd.http.HttpBrowser.sendRequest()

  }

  @Test
  public void testException() {
    HttpBrowser httpBrowser = new HttpBrowser();
    HttpResponse response = httpBrowser.sendRequest(HttpRequest.get("localhost:8173/exc.html"));

    assertEquals("500!", response.bodyText().trim());
  }

  @Test
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.