Examples of selectServerInstance()


Examples of org.teiid.net.socket.SocketServerConnection.selectServerInstance()

  @Test public void testConnectWithoutClientEncryption() throws Exception {
    SSLConfiguration config = new SSLConfiguration();
    config.setMode(SSLConfiguration.DISABLED);
    SocketServerConnection conn = helpEstablishConnection(false, config, new Properties());
    assertTrue(conn.selectServerInstance(false).getCryptor() instanceof NullCryptor);
    conn.close();
  }

  private SocketServerConnection helpEstablishConnection(boolean secure) throws CommunicationException, ConnectionException {
    return helpEstablishConnection(secure, new SSLConfiguration(), new Properties());
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.