public interface SearchAPIHttpClient
extends java.io.Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
SearchAPIHttpClient.Request |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the client
|
SearchAPIHttpClientResponse |
sendGET(SearchAPIHttpClient.Request req)
Perfoms a GET query.
|
SearchAPIHttpClientResponse |
sendPOST(SearchAPIHttpClient.Request req)
Perfoms a POST query of a string content.
|
SearchAPIHttpClientResponse sendGET(SearchAPIHttpClient.Request req) throws java.io.IOException, HTTPSearchFailedException
queryString
- java.io.IOException
- in case of I/O exception during the requestHTTPSearchFailedException
- if the return code was not 200. In that case, the whole body is read as a string and returned in the exceptionSearchAPIHttpClientResponse sendPOST(SearchAPIHttpClient.Request req) throws java.io.IOException, HTTPSearchFailedException
queryString
- java.io.IOException
- in case of I/O exception during the requestHTTPSearchFailedException
- if the return code was not 200. In that case, the whole body is read as a string and returned in the exceptionvoid close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
Copyright © 2021 Dassault Systèmes, All Rights Reserved.