Adds a base URL for the client to use. @param url the URL of the Chain Core or HSM.
(String url)
| 609 | * @param url the URL of the Chain Core or HSM. |
| 610 | */ |
| 611 | public Builder addURL(String url) throws BadURLException { |
| 612 | try { |
| 613 | this.urls.add(new URL(url)); |
| 614 | } catch (MalformedURLException e) { |
| 615 | throw new BadURLException(e.getMessage()); |
| 616 | } |
| 617 | return this; |
| 618 | } |
| 619 | |
| 620 | /** |
| 621 | * Adds a base URL for the client to use. |
no test coverage detected