Interface HttpAgent

    • Method Detail

      • start

        void start()
            throws com.alibaba.nacos.api.exception.NacosException
        start to get nacos ip list
        Throws:
        com.alibaba.nacos.api.exception.NacosException - on get ip list error.
      • httpGet

        HttpSimpleClient.HttpResult httpGet​(String path,
                                            List<String> headers,
                                            List<String> paramValues,
                                            String encoding,
                                            long readTimeoutMs)
                                     throws IOException
        invoke http get method
        Parameters:
        path - http path
        headers - http headers
        paramValues - http paramValues http
        encoding - http encode
        readTimeoutMs - http timeout
        Returns:
        HttpResult http response
        Throws:
        IOException - If an input or output exception occurred
      • httpPost

        HttpSimpleClient.HttpResult httpPost​(String path,
                                             List<String> headers,
                                             List<String> paramValues,
                                             String encoding,
                                             long readTimeoutMs)
                                      throws IOException
        invoke http post method
        Parameters:
        path - http path
        headers - http headers
        paramValues - http paramValues http
        encoding - http encode
        readTimeoutMs - http timeout
        Returns:
        HttpResult http response
        Throws:
        IOException - If an input or output exception occurred
      • httpDelete

        HttpSimpleClient.HttpResult httpDelete​(String path,
                                               List<String> headers,
                                               List<String> paramValues,
                                               String encoding,
                                               long readTimeoutMs)
                                        throws IOException
        invoke http delete method
        Parameters:
        path - http path
        headers - http headers
        paramValues - http paramValues http
        encoding - http encode
        readTimeoutMs - http timeout
        Returns:
        HttpResult http response
        Throws:
        IOException - If an input or output exception occurred
      • getName

        String getName()
        get name
        Returns:
        String
      • getNamespace

        String getNamespace()
        get namespace
        Returns:
        String
      • getTenant

        String getTenant()
        get tenant
        Returns:
        String
      • getEncode

        String getEncode()
        get encode
        Returns:
        String