Class ElasticConnexion
java.lang.Object
fr.paris.lutece.plugins.identitystore.service.indexer.elastic.client.ElasticConnexion
The Class ElasticConnexion.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorElasticConnexion(String userLogin, String userPassword) Basic Authentification constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidSend a DELETE request to Elastic Search serverSend a GET request to Elastic Search serverSend a HEAD request to Elasticsearch serverSend a POST request to Elastic Search servervoidSend a POST request to Elastic Search servervoidSend a PUT request to Elastic Search serverSend a POST request to Elastic Search server
-
Constructor Details
-
ElasticConnexion
Basic Authentification constructor- Parameters:
userLogin- LoginuserPassword- Password
-
ElasticConnexion
public ElasticConnexion()Constructor
-
-
Method Details
-
GET
Send a GET request to Elastic Search server- Parameters:
strURI- The URI- Returns:
- The response
- Throws:
ElasticConnexionException
-
HEAD
Send a HEAD request to Elasticsearch server- Parameters:
strURI- The URI- Returns:
- The response
- Throws:
ElasticConnexionException
-
PUT
Send a PUT request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Throws:
ElasticConnexionException
-
POST
Send a POST request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Throws:
ElasticConnexionException
-
SEARCH
Send a POST request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Returns:
- the string
- Throws:
ElasticConnexionException
-
MSEARCH
Send a POST request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Returns:
- the string
- Throws:
ElasticConnexionException
-
DELETE
Send a DELETE request to Elastic Search server- Parameters:
strURI- the uri- Throws:
ElasticConnexionException
-