Creates a client instance. @param login optional login data @return client instance @throws IOException I/O exception
(final String... login)
| 570 | * @throws IOException I/O exception |
| 571 | */ |
| 572 | public static ClientSession createClient(final String... login) throws IOException { |
| 573 | final String username = login.length > 0 ? login[0] : UserText.ADMIN; |
| 574 | final String password = login.length > 1 ? login[1] : NAME; |
| 575 | return new ClientSession(S_LOCALHOST, DB_PORT, username, password); |
| 576 | } |
| 577 | |
| 578 | /** |
| 579 | * Returns the sandbox database path. |
no outgoing calls