Interface SmoSearchTransport


public interface SmoSearchTransport
A trivial "transport abstraction" to make possible pluggable implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    fetch(String serviceUri, Map<String,String> headers)
    This method should issue a HTTP GET requests using serviceUri and return body payload as String ONLY if the response was HTTP 200 Ok and there was a payload returned by service.
  • Method Details

    • fetch

      String fetch(String serviceUri, Map<String,String> headers) throws IOException
      This method should issue a HTTP GET requests using serviceUri and return body payload as String ONLY if the response was HTTP 200 Ok and there was a payload returned by service. In any other case, it should throw, never return null. The payload is expected to be application/json, so client may add headers to request. Also, the payload is expected to be "relatively small" that may be enforced.
      Throws:
      IOException