Class ElasticConnexion


  • public final class ElasticConnexion
    extends Object
    The Class ElasticConnexion.
    • Constructor Detail

      • ElasticConnexion

        public ElasticConnexion​(String userLogin,
                                String userPassword)
        Basic Authentification constructor
        Parameters:
        userLogin - Login
        userPassword - Password
      • ElasticConnexion

        public ElasticConnexion()
        Constructor
    • 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 uri
        strJSON - 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 uri
        strJSON - 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