Package com.calclab.emite.core.conn

Examples of com.calclab.emite.core.conn.ConnectionSettings


    if (Strings.isNullOrEmpty(httpBase) || Strings.isNullOrEmpty(hostName))
      return false;

    logger.info("CONNECTION PARAMS: " + httpBase + ", " + hostName);
    connection.setSettings(new ConnectionSettings(httpBase, hostName, routeHost, routePort, secure, wait, hold));
    return true;
  }
View Full Code Here


    connection = new XmppConnectionBosh(new SimpleEventBus());
  }

  @Test
  public void shouldSendInitialBody() {
    connection.setSettings(new ConnectionSettings("localhost"));
    connection.connect();
    assertEquals(1, services.requestSentCount());
    final IsPacketLike matcher = IsPacketLike.build("<body to='localhost' " + "content='text/xml; charset=utf-8' xmlns:xmpp='urn:xmpp:xbosh' "
        + " ack='1' hold='1' secure='true' xml:lang='en' " + "xmpp:version='1.0' wait='60' xmlns='http://jabber.org/protocol/httpbind' />");
    assertTrue(matcher.matches(services.getSentPacket(0), System.out));
View Full Code Here

TOP

Related Classes of com.calclab.emite.core.conn.ConnectionSettings

Copyright © 2018 www.massapicom. 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.