Class ElasticConnexion
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.service.indexer.elastic.client.ElasticConnexion
-
public final class ElasticConnexion extends Object
The Class ElasticConnexion.
-
-
Constructor Summary
Constructors Constructor Description ElasticConnexion()ConstructorElasticConnexion(String userLogin, String userPassword)Basic Authentification constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidDELETE(String strURI)Send a DELETE request to Elastic Search serverStringGET(String strURI)Send a GET request to Elastic Search serverStringHEAD(String strURI)Send a HEAD request to Elasticsearch serverResponsesMSEARCH(String strURI, String strJSON)Send a POST request to Elastic Search servervoidPOST(String strURI, String strJSON)Send a POST request to Elastic Search servervoidPUT(String strURI, String strJSON)Send a PUT request to Elastic Search serverResponseSEARCH(String strURI, String strJSON)Send a POST request to Elastic Search server
-
-
-
Method Detail
-
GET
public String GET(String strURI) throws ElasticConnexionException
Send a GET request to Elastic Search server- Parameters:
strURI- The URI- Returns:
- The response
- Throws:
ElasticConnexionException
-
HEAD
public String HEAD(String strURI) throws ElasticConnexionException
Send a HEAD request to Elasticsearch server- Parameters:
strURI- The URI- Returns:
- The response
- Throws:
ElasticConnexionException
-
PUT
public void PUT(String strURI, String strJSON) throws ElasticConnexionException
Send a PUT request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Throws:
ElasticConnexionException
-
POST
public void POST(String strURI, String strJSON) throws ElasticConnexionException
Send a POST request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Throws:
ElasticConnexionException
-
SEARCH
public Response SEARCH(String strURI, String strJSON) throws ElasticConnexionException
Send a POST request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Returns:
- the string
- Throws:
ElasticConnexionException
-
MSEARCH
public Responses MSEARCH(String strURI, String strJSON) throws ElasticConnexionException
Send a POST request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Returns:
- the string
- Throws:
ElasticConnexionException
-
DELETE
public void DELETE(String strURI) throws ElasticConnexionException
Send a DELETE request to Elastic Search server- Parameters:
strURI- the uri- Throws:
ElasticConnexionException
-
-