public void setOptions ( Options opts ) throws IOException , ServerException { Command cmd = new Command ( "OPTS" , opts . toFtpCmdArgument ( ) ) ; try { controlChannel . execute ( cmd ) ; } catch ( FTPReplyParseException rpe ) { throw ServerException . embedFTPReplyParseException ( rpe ) ; } catch ( UnexpectedReplyCodeException urce ) { throw ServerException . embedUnexpectedReplyCodeException ( urce , "Server refused setting options" ) ; } localServer . setOptions ( opts ) ; }
Sets the supplied options to the server .