Class UrlConnectionSmoSearchTransport
java.lang.Object
org.apache.maven.search.backend.smo.internal.SmoSearchTransportSupport
org.apache.maven.search.backend.smo.internal.UrlConnectionSmoSearchTransport
HttpURLConnection backed transport.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.search.backend.smo.internal.SmoSearchTransportSupport
getClientVersion, getUserAgent
-
Constructor Details
-
UrlConnectionSmoSearchTransport
public UrlConnectionSmoSearchTransport()
-
-
Method Details
-
fetch
public String fetch(org.apache.maven.search.SearchRequest searchRequest, String serviceUri) throws IOException Description copied from class:SmoSearchTransportSupportThis method should issue a HTTP GET requests usingserviceUriand return body payload asStringONLY 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".- Specified by:
fetchin classSmoSearchTransportSupport- Throws:
IOException
-