Class UrlConnectionSmoSearchTransport
java.lang.Object
org.apache.maven.search.backend.smo.internal.UrlConnectionSmoSearchTransport
- All Implemented Interfaces:
SmoSearchTransport
HttpURLConnection
backed transport.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UrlConnectionSmoSearchTransport
public UrlConnectionSmoSearchTransport()
-
-
Method Details
-
fetch
Description copied from interface:SmoSearchTransport
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.- Specified by:
fetch
in interfaceSmoSearchTransport
- Throws:
IOException
-