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