Package lumis.portal.httpintegration
Interface IHTTPIntegrationManager
-
- All Known Subinterfaces:
IHTTPIntegrationManagerSPI
- All Known Implementing Classes:
HTTPIntegrationManager
@StableMinor(version="17.0", sinceVersion="17.0") public interface IHTTPIntegrationManager
Integration manager.- Since:
- 17.0.0
- Version:
- $Revision$ $Date$
-
-
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 toexecute(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 tonull
and the events generated by this method will not be collected at all. If this is the scenario, use theexecute(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 nullPortalException
- 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 requesthttpRequestConfig
- the request configuration- Returns:
- the response from the server
- Throws:
java.lang.IllegalArgumentException
- if the request is nulljava.lang.IllegalArgumentException
- if the httpRequestConfig is nullPortalException
- if an error occurred- Since:
- 17.0.0
-
-