public final class ElasticConnexion extends Object
| Constructor and Description |
|---|
ElasticConnexion()
Constructor
|
ElasticConnexion(String userLogin,
String userPassword)
Basic Authentification constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
DELETE(String strURI)
Send a DELETE request to Elastic Search server
|
String |
GET(String strURI)
Send a GET request to Elastic Search server
|
String |
POST(String strURI,
String strJSON)
Send a POST request to Elastic Search server
|
String |
PUT(String strURI,
String strJSON)
Send a PUT request to Elastic Search server
|
public ElasticConnexion(String userLogin, String userPassword)
userLogin - LoginuserPassword - Passwordpublic ElasticConnexion()
public String GET(String strURI) throws IOException
strURI - The URIIOExceptionpublic String PUT(String strURI, String strJSON) throws IOException
strURI - the uristrJSON - the jsonIOExceptionpublic String POST(String strURI, String strJSON) throws IOException
strURI - the uristrJSON - the jsonIOExceptionpublic String DELETE(String strURI) throws IOException
strURI - the uriIOExceptionCopyright © 2023 City of Paris. All rights reserved.