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