Class HttpService
java.lang.Object
org.jenkinsci.plugins.codesonar.services.HttpService
- Author:
- Andrius
-
Constructor Summary
ConstructorsConstructorDescriptionHttpService
(Collection<? extends Certificate> serverCertificates, KeyStore clientCertificateKeyStore, Secret clientCertificatePassword, int socketTimeoutMS) -
Method Summary
Modifier and TypeMethodDescriptionexecute
(org.apache.http.client.fluent.Request request) org.apache.http.client.fluent.Executor
Try to get a cahced object that describes hub capabilities and compatibility information.getResponse
(HttpServiceRequest request) getResponseFromUrl
(String url) getResponseFromUrl
(URI uri) void
setHubInfo
(CodeSonarHubInfo hubInfo) Set the cached Hub Info object.void
setSocketTimeoutMS
(int socketTimeoutMS)
-
Constructor Details
-
HttpService
public HttpService(Collection<? extends Certificate> serverCertificates, KeyStore clientCertificateKeyStore, Secret clientCertificatePassword, int socketTimeoutMS) throws CodeSonarPluginException - Throws:
CodeSonarPluginException
-
-
Method Details
-
setSocketTimeoutMS
public void setSocketTimeoutMS(int socketTimeoutMS) -
getHubInfo
Try to get a cahced object that describes hub capabilities and compatibility information. May return null. -
setHubInfo
Set the cached Hub Info object. -
getResponseFromUrl
- Throws:
CodeSonarPluginException
-
getResponseFromUrl
- Throws:
CodeSonarPluginException
-
getResponse
- Throws:
CodeSonarPluginException
-
execute
public HttpServiceResponse execute(org.apache.http.client.fluent.Request request) throws IOException - Throws:
IOException
-
getExecutor
public org.apache.http.client.fluent.Executor getExecutor()
-