Interface SmoSearchTransport
- All Known Implementing Classes:
UrlConnectionSmoSearchTransport
public interface SmoSearchTransport
A trivial "transport abstraction" to make possible pluggable implementations.
-
Method Summary
-
Method Details
-
fetch
This method should issue a HTTP GET requests usingserviceUri
and return body payload asString
ONLY if the response was HTTP 200 Ok and there was a payload returned by service. In any other case, it should throw, never returnnull
. The payload is expected to beapplication/json
, so client may add headers to request. Also, the payload is expected to be "relatively small" that may be enforced.- Throws:
IOException
-