Interface IHTTPIntegrationManager

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default org.apache.hc.client5.http.fluent.Response execute​(org.apache.hc.client5.http.fluent.Request request)
      Performs the given request.
      org.apache.hc.client5.http.fluent.Response execute​(org.apache.hc.client5.http.fluent.Request request, HTTPRequestConfig httpRequestConfig)
      Performs the given request.
    • Method Detail

      • execute

        default org.apache.hc.client5.http.fluent.Response execute​(org.apache.hc.client5.http.fluent.Request request)
                                                            throws PortalException
        Performs the given request. This method uses the default HTTP request configuration.
        This method is equivalent to execute(request, HTTPRequestConfig.Builder.create().build()).
        When using this method, the monitoring events generated during the execution of the given request will have their project identifier inferred from the monitoring information present in the current thread. If no project identifier could be inferred, the project identifier will be set to null and the events generated by this method will not be collected at all. If this is the scenario, use the execute(Request, HTTPRequestConfig) method instead to be able to pass the proper project identifier in the request configuration.
        Parameters:
        request - the request
        Returns:
        the response from the server
        Throws:
        java.lang.IllegalArgumentException - if the request is null
        PortalException - if an error occurred
        Since:
        17.0.0
      • execute

        org.apache.hc.client5.http.fluent.Response execute​(org.apache.hc.client5.http.fluent.Request request,
                                                           HTTPRequestConfig httpRequestConfig)
                                                    throws PortalException
        Performs the given request.
        Parameters:
        request - the request
        httpRequestConfig - the request configuration
        Returns:
        the response from the server
        Throws:
        java.lang.IllegalArgumentException - if the request is null
        java.lang.IllegalArgumentException - if the httpRequestConfig is null
        PortalException - if an error occurred
        Since:
        17.0.0