Commit 3f38a2d5 authored by lichenchong's avatar lichenchong
Browse files

Update admin client could use both ssl and non-ssl to connect to

simulator/drive, the default is ssl connection. If you want to use
non-ssl, please setUseSsl is false and setPort is non-ssl port.
parent a102df6d
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -46,20 +46,4 @@ public class AdminClientConfiguration extends ClientConfiguration {
        super.setUseSsl(true);
        setPort(getSSLDefaultPort());
    }

    /**
     * Admin client only supports SSL connections. The default port is set to 8123.
     * 
     * @param flag
     *            The admin client only supports SSL. Throws
     *            UnsupportedOperationException if attempted to set to false.
     *            
     * @see ClientConfiguration#getSSLDefaultPort()
     */
    @Override
    public void setUseSsl(boolean flag) {
        if (!flag)
            throw new java.lang.UnsupportedOperationException(
                    "cannot disable SSL usage for admin client");
    }
}