Class JenkinsAppApi<ResponseEntity>
java.lang.Object
com.atlassian.jira.cloud.jenkins.common.client.JenkinsAppApi<ResponseEntity>
- Direct Known Subclasses:
BuildsApi
,DeploymentsApi
,GatingStatusApi
,PingApi
,PluginConfigApi
-
Constructor Summary
ConstructorDescriptionJenkinsAppApi
(okhttp3.OkHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected ResponseEntity
sendRequest
(String webhookUrl, JenkinsAppRequest jenkinsAppRequest, Class<ResponseEntity> responseClass, PipelineLogger pipelineLogger) protected ResponseEntity
sendRequestAsJwt
(String webhookUrl, String secret, JenkinsAppRequest jenkinsAppRequest, Class<ResponseEntity> responseClass, PipelineLogger pipelineLogger) protected String
wrapInJwt
(JenkinsAppRequest request, String secret, Date expiryDate, PipelineLogger pipelineLogger)
-
Constructor Details
-
JenkinsAppApi
@Inject public JenkinsAppApi(okhttp3.OkHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
sendRequest
protected ResponseEntity sendRequest(String webhookUrl, JenkinsAppRequest jenkinsAppRequest, Class<ResponseEntity> responseClass, PipelineLogger pipelineLogger) throws ApiUpdateFailedException - Throws:
ApiUpdateFailedException
-
sendRequestAsJwt
protected ResponseEntity sendRequestAsJwt(String webhookUrl, String secret, JenkinsAppRequest jenkinsAppRequest, Class<ResponseEntity> responseClass, PipelineLogger pipelineLogger) throws ApiUpdateFailedException - Throws:
ApiUpdateFailedException
-
wrapInJwt
protected String wrapInJwt(JenkinsAppRequest request, String secret, Date expiryDate, PipelineLogger pipelineLogger) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-