Examples of sendRequest()


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

    assertEquals(Basic.OPEN, presence.getTupleArray()[0].getStatus().getBasic());
   
   
    SubscribeSession winfoSession = new SubscribeSession(getBobPhone(), "presence.winfo"); // 7
    subscribe = winfoSession.newInitialSubscribe(60, getBobUri());
    winfoSession.sendRequest(subscribe, Response.OK); // 8
   
    tx = winfoSession.waitForNotify(); // 9
    Request notify = tx.getRequest();
    //System.out.println(notify);
    winfoSession.sendResponse(Response.OK, tx); // 10
View Full Code Here

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

    public void testMinExpires() throws Exception
    {      
        SubscribeSession session = new SubscribeSession(getAlicePhone(), "presence");
        Request request = session.newInitialSubscribe(1, getAliceUri());
        Response response = session.sendRequest(request, SipResponse.INTERVAL_TOO_BRIEF);
        MinExpiresHeader minExpiresHeader = (MinExpiresHeader) response.getHeader(MinExpiresHeader.NAME);
        assertNotNull(minExpiresHeader);
    }
   
    @SuppressWarnings("unchecked")
View Full Code Here

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

    @SuppressWarnings("unchecked")
  public void testBadEvent() throws Exception
    {      
        SubscribeSession session = new SubscribeSession(getAlicePhone(), "unknown");
        Request request = session.newInitialSubscribe(100, getAliceUri());
        Response response = session.sendRequest(request, SipResponse.BAD_EVENT);
        Iterator it = response.getHeaders(AllowEventsHeader.NAME);
        List<String> l = new ArrayList<String>();
        while (it.hasNext())
    {
      AllowEventsHeader allowEventsHeader = (AllowEventsHeader) it.next();
View Full Code Here

Examples of org.jacorb.orb.giop.ClientConnection.sendRequest()

                }
                cltconn = connection;
            }
            // Use the local copy of the client connection to avoid trouble
            // with something else affecting the real connection.
            cltconn.sendRequest(ros, receiver, ros.requestId(), true);
        }
        catch ( org.omg.CORBA.SystemException cfe )
        {
            logger.debug("invoke: SystemException");
View Full Code Here

Examples of org.jscep.transport.HttpGetTransport.sendRequest()

  private X509Certificate getRecipient() throws Exception {
    GetCaCertRequest req = new GetCaCertRequest();
    Transport transport = new HttpGetTransport(getURL());

    CertStore store = transport.sendRequest(req,
        new GetCaCertResponseHandler());
    Collection<? extends Certificate> certs = store.getCertificates(null);

    if (certs.size() > 0) {
      return (X509Certificate) certs.iterator().next();
View Full Code Here

Examples of org.jscep.transport.Transport.sendRequest()

  private X509Certificate getRecipient() throws Exception {
    GetCaCertRequest req = new GetCaCertRequest();
    Transport transport = new HttpGetTransport(getURL());

    CertStore store = transport.sendRequest(req,
        new GetCaCertResponseHandler());
    Collection<? extends Certificate> certs = store.getCertificates(null);

    if (certs.size() > 0) {
      return (X509Certificate) certs.iterator().next();
View Full Code Here

Examples of org.servalproject.servaldna.MdpDnaLookup.sendRequest()

      @Override
      public void result(ServalDCommand.LookupResult nextResult) {
        System.out.println(nextResult.toString());
      }
    });
    lookup.sendRequest(SubscriberId.broadcastSid, did);
    Thread.sleep(3000);
    lookup.close();
  }

  static void service(String pattern) throws IOException, InterruptedException, ServalDInterfaceException {
View Full Code Here

Examples of org.servalproject.servaldna.MdpServiceLookup.sendRequest()

      @Override
      public void result(MdpServiceLookup.ServiceResult nextResult) {
        System.out.println(nextResult.toString());
      }
    });
    lookup.sendRequest(SubscriberId.broadcastSid, pattern);
    Thread.sleep(3000);
    lookup.close();
  }

  public static void main(String... args){
View Full Code Here

Examples of org.sgx.yuigwt.yui.datasource.DataSource.sendRequest()

    final Console console1 = Y.newConsole(ConsoleConfig.create().collapsed(true)).render().cast();
   
    //test 1 : Using DataSource.Local
    JavaScriptObject data1 = data1();
    DataSource ds1 = Y.newDataSourceLocal(DataSourceConfig.create().source(data1));
    ds1.sendRequest(DataSourceRequest.create().callback(new DataSourceCallbackAdapter() {
      @Override
      public void success(DataSourceEvent e) {
        console1.log("success1: "+JsUtil.dumpObj(e.response().meta())+
          " - "+JsUtil.dumpObj(e.response().results(), true));
      }
View Full Code Here

Examples of soaprmi.soaprpc.MethodInvoker.sendRequest()

                    "invoking SoapRMI operation "
                        + getName()
                        + " on "
                        + locationUri);

            mi.sendRequest(params, writer);

            String requestContent = sw.toString();

            String httpProxyHost = null;
            int httpProxyPort = -1;
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.