public class Onionoo
extends java.lang.Object
Constructor and Description |
---|
Onionoo(java.lang.String baseUrl)
Create a new Onionoo client.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<BridgeImpl> |
getBridgeDetails() |
java.util.List<RelayImpl> |
getRelayDetails()
Fetch a list of all known relays.
|
public Onionoo(java.lang.String baseUrl)
baseUrl
- the base URL to use, for example "https://onionoo.torproject.org/"
(this should include the trailing slash)"public java.util.List<RelayImpl> getRelayDetails() throws OnionooNotUpdatedException
OnionooNotUpdatedException
- Thrown if it was not possible to fetch a list of relays.public java.util.List<BridgeImpl> getBridgeDetails() throws OnionooNotUpdatedException
OnionooNotUpdatedException