public final class ElasticConnexion extends Object
| Constructor and Description |
|---|
ElasticConnexion()
Constructor
|
ElasticConnexion(String strLogin,
String strPassword)
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 strLogin, String strPassword)
strServerLogin - LoginstrServerPwd - Passwordpublic ElasticConnexion()
public String GET(String strURI) throws fr.paris.lutece.util.httpaccess.HttpAccessException
strURI - The URIfr.paris.lutece.util.httpaccess.HttpAccessExceptionpublic String PUT(String strURI, String strJSON) throws fr.paris.lutece.util.httpaccess.HttpAccessException
strURI - the uristrJSON - the jsonfr.paris.lutece.util.httpaccess.HttpAccessException - http access exceptionpublic String POST(String strURI, String strJSON) throws fr.paris.lutece.util.httpaccess.HttpAccessException
strURI - the uristrJSON - the jsonfr.paris.lutece.util.httpaccess.HttpAccessException - http access exceptionCopyright © 2023 City of Paris. All rights reserved.