public interface JsonHomeClient
| Modifier and Type | Method and Description |
|---|---|
de.otto.jsonhome.model.JsonHome |
get(java.net.URI uri)
Gets the JsonHome document associated to the specified URI.
|
void |
shutdown()
Shutdown the client and dispose all resources.
|
de.otto.jsonhome.model.JsonHome |
updateAndGet(java.net.URI uri)
Updates the (possibly cached) JsonHome instance identified by the URI and returns the updated instance.
|
de.otto.jsonhome.model.JsonHome updateAndGet(java.net.URI uri)
uri - the URI uniquely identifying the JsonHome instance.NotFoundException - if the requested JsonHome was not found.JsonHomeClientException - different kind of runtime exceptions, depending on the reason why processing of the
request failed. Most notably: HttpStatusCodeException indication a HTTP client or server error in HTTP based
implementations of the JsonHomeClient, or IllegalArgumentException in case of an invalid json-home document.de.otto.jsonhome.model.JsonHome get(java.net.URI uri)
uri - the URI of the JsonHome document.NotFoundException - if the requested JsonHome was not found.JsonHomeClientException - different kind of runtime exceptions, depending on the reason why processing of the
request failed. Most notably: HttpStatusCodeException indication a HTTP client or server error in HTTP based
implementations of the JsonHomeClient, or IllegalArgumentException in case of an invalid json-home document.void shutdown()