Example usage for org.apache.commons.net.ftp FTPSClient getUseClientMode

List of usage examples for org.apache.commons.net.ftp FTPSClient getUseClientMode

Introduction

In this page you can find the example usage for org.apache.commons.net.ftp FTPSClient getUseClientMode.

Prototype

public boolean getUseClientMode() 

Source Link

Document

Returns true if the socket is set to use client mode in its first handshake.

Usage

From source file:com.adaptris.core.ftp.ClientSettingsTest.java

@Test
public void testPreConnectSettings_FTPS() {
    FTPSClient client = new FTPSClient();
    preConnectSettings(client, FTPS.values(), createFtpsSettings());
    assertTrue(client.isEndpointCheckingEnabled());
    // Not Connected yet, so these will not be the same.
    assertFalse(client.getNeedClientAuth());
    assertFalse(client.getUseClientMode());
    assertFalse(client.getWantClientAuth());
    assertNull(client.getEnabledCipherSuites());
    assertNull(client.getEnabledProtocols());
}