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 StringDELETE(String strURI)Send a DELETE request to Elastic Search serverStringGET(String strURI)Send a GET request to Elastic Search serverStringPOST(String strURI, String strJSON)Send a POST request to Elastic Search serverStringPUT(String strURI, String strJSON)Send a PUT request to Elastic Search server
-
-
-
Method Detail
-
GET
public String GET(String strURI) throws IOException
Send a GET request to Elastic Search server- Parameters:
strURI- The URI- Returns:
- The response
- Throws:
IOException
-
PUT
public String PUT(String strURI, String strJSON) throws IOException
Send a PUT request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Returns:
- the string
- Throws:
IOException
-
POST
public String POST(String strURI, String strJSON) throws IOException
Send a POST request to Elastic Search server- Parameters:
strURI- the uristrJSON- the json- Returns:
- the string
- Throws:
IOException
-
DELETE
public String DELETE(String strURI) throws IOException
Send a DELETE request to Elastic Search server- Parameters:
strURI- the uri- Returns:
- the string
- Throws:
IOException
-
-