Examples of sendRequest()


Examples of net.gescobar.smppserver.SmppSession.sendRequest()

      DeliverSm deliverSM = new DeliverSm();
      deliverSM.setDestAddress(new Address((byte) 0, (byte) 0, to));
      deliverSM.setSourceAddress(new Address((byte) 0, (byte) 0, from));
      deliverSM.setShortMessage(text.getBytes());

      session.sendRequest(deliverSM);

      long timeout = 2000;
      if (!receiveMessage(messageProducer, timeout)) {
        Assert.fail("the message was not received");
      }
View Full Code Here

Examples of org.apache.catalina.startup.SimpleHttpClient.sendRequest()

        client.setPort(getPort());
        client.setRequest(new String[] {request});

        client.connect();
        client.sendRequest();

        for (int i = 0; i < 10; i++) {
            System.out.println(client.readLine());
        }
View Full Code Here

Examples of org.apache.tomcat.lite.http.HttpConnector.HttpConnection.sendRequest()

                con = remoteServer.spdy;
            }

            // Will be queued - multiple threads may try to send
            // at the same time, and we need to queue anyways.
            con.sendRequest(httpCh);
        } else {
            synchronized (remoteServer) {
                Http11Connection hcon;
                for (int i = 0; i < remoteServer.connections.size(); i++) {
                    hcon = (Http11Connection) remoteServer.connections.get(i);
View Full Code Here

Examples of org.apache.ws.muws.interop.client.ResourceStub.sendRequest()

        weatherDoc.setWeatherStationReference((EndpointReferenceType) newEpr);
        XmlBeanUtils.addChildElement(updateType,weatherDoc);
        setResourceProperties.setUpdateArray(new UpdateType[]{updateType});
        ResourceStub stub = new ResourceStub(referenceToWcConfigEpr);
        stub.sendRequest(setResourcePropertiesDocument,"http://foo","X");
  }

}
View Full Code Here

Examples of org.cafesip.sipunit.AbstractSession.sendRequest()

        Request request = session.newRequest(Request.SUBSCRIBE, 1, getBobUri());
        request.setHeader(hf.createExpiresHeader(60));
        request.setHeader(hf.createEventHeader("presence"));
        request.setHeader(getAlicePhone().getContactInfo().getContactHeader());
        request.setHeader(hf.createAcceptHeader("application", "unknown"));
        session.sendRequest(request, SipResponse.UNSUPPORTED_MEDIA_TYPE);
    }
   
   
    public void testEtags() throws Exception
    {      
View Full Code Here

Examples of org.cafesip.sipunit.PublishSession.sendRequest()

   */
  public void testSubscription3() throws Exception
  {
    PublishSession publishSession = new PublishSession(getBobPhone());
        Request publish = publishSession.newPublish(getClass().getResourceAsStream("publish1.xml"), 60); // 1
        publishSession.sendRequest(publish, SipResponse.OK); // 2
   
    SubscribeSession presenceSession = new SubscribeSession(getAlicePhone(), "presence");
    Request subscribe = presenceSession.newInitialSubscribe(100, getBobUri()); // 3
    presenceSession.sendRequest(subscribe, Response.OK); // 4

View Full Code Here

Examples of org.cafesip.sipunit.PublishSession.sendRequest()

       
    tx = presenceSession.waitForNotify(); // 23
    presenceSession.sendResponse(Response.OK, tx); // 24
   
    publish = publishSession.newUnpublish(); // 25
    publishSession.sendRequest(publish, Response.OK); // 26
  }
 
  /**
   * <pre>
       Bob                Kaleo                 Alice
View Full Code Here

Examples of org.cafesip.sipunit.PublishSession.sendRequest()

   */
  public void testWaitingState() throws Exception
  {
    PublishSession publishSession = new PublishSession(getAlicePhone());
        Request publish = publishSession.newPublish(getClass().getResourceAsStream("publish1.xml"), 60); // 1
        publishSession.sendRequest(publish, SipResponse.OK); // 2
       
        SubscribeSession presenceSession = new SubscribeSession(getBobPhone(), "presence");
    Request subscribe = presenceSession.newInitialSubscribe(0, getAliceUri()); // 3
    presenceSession.sendRequest(subscribe, Response.OK); // 4

View Full Code Here

Examples of org.cafesip.sipunit.PublishSession.sendRequest()

    presenceSession.sendResponse(Response.OK, tx); // 16
    presence = getPresence(tx.getRequest());
    assertEquals(Basic.OPEN, presence.getTupleArray()[0].getStatus().getBasic());
   
    publish = publishSession.newUnpublish(); // 25
    publishSession.sendRequest(publish, Response.OK); // 26
  }
   
  private Watcherinfo getWatcherinfo(Request request)
  {
    ContentTypeHeader contentType = (ContentTypeHeader) request.getHeader(ContentTypeHeader.NAME);
View Full Code Here

Examples of org.cafesip.sipunit.PublishSession.sendRequest()

       
        Thread.sleep(200);
       
        PublishSession publishSession = new PublishSession(getBobPhone());
        Request publish = publishSession.newPublish(getClass().getResourceAsStream("publish1.xml"), 20);
        publishSession.sendRequest(publish, SipResponse.OK);

        // get the NOTIFY
        reqevent = s.waitNotify(10000);
        assertNotNull(s.format(), reqevent);
        assertNoSubscriptionErrors(s);
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.