public static class CkanClient.Builder extends Object
Modifier | Constructor and Description |
---|---|
protected |
CkanClient.Builder(CkanClient client) |
Modifier and Type | Method and Description |
---|---|
CkanClient |
build() |
protected void |
checkNotCreated() |
protected CkanClient |
getClient() |
protected boolean |
getCreated() |
CkanClient.Builder |
setCatalogUrl(String catalogUrl)
Sets the catalog url i.e.
|
CkanClient.Builder |
setCkanToken(String ckanToken)
Sets the private token string for ckan repository
|
CkanClient.Builder |
setProxy(String proxyUrl)
Sets the proxy used to perform GET and POST calls
|
CkanClient.Builder |
setTimeout(int timeout)
Sets the connection timeout expressed as number of milliseconds.
|
protected CkanClient.Builder(CkanClient client)
protected CkanClient getClient()
protected boolean getCreated()
protected void checkNotCreated()
public CkanClient.Builder setCatalogUrl(String catalogUrl)
public CkanClient.Builder setCkanToken(@Nullable String ckanToken)
public CkanClient.Builder setProxy(@Nullable String proxyUrl)
public CkanClient.Builder setTimeout(int timeout)
IllegalArgumentException
- is value is less than 1.public CkanClient build()
Copyright © 2015 Trento Rise. All rights reserved.