Class BitBucketPPRNotificationSender
java.lang.Object
io.jenkins.plugins.bitbucketpushandpullrequest.client.api.BitBucketPPRNotificationSender
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class BitBucketPPRNotificationSender
extends Object
Sends build-status notifications and fully owns the transport lifecycle: clients, services and
responses are closed before a
BitBucketPPRApiResponse is returned. This is the internal
replacement for the deprecated per-credential consumer classes, which keep their original
live-response contract for binary compatibility.-
Method Summary
Modifier and TypeMethodDescriptionstatic BitBucketPPRApiResponsesendBasicAuth(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials, com.github.scribejava.core.model.Verb verb, String url, String payload) static BitBucketPPRApiResponsesendBearer(org.jenkinsci.plugins.plaincredentials.StringCredentials credentials, com.github.scribejava.core.model.Verb verb, String url, String payload) static BitBucketPPRApiResponsesendOAuth2(org.jenkinsci.plugins.plaincredentials.StringCredentials credentials, com.github.scribejava.core.model.Verb verb, String url, String payload)
-
Method Details
-
sendBasicAuth
public static BitBucketPPRApiResponse sendBasicAuth(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials, com.github.scribejava.core.model.Verb verb, String url, String payload) throws IOException, NoSuchMethodException - Throws:
IOExceptionNoSuchMethodException
-
sendBearer
public static BitBucketPPRApiResponse sendBearer(org.jenkinsci.plugins.plaincredentials.StringCredentials credentials, com.github.scribejava.core.model.Verb verb, String url, String payload) throws IOException, NoSuchMethodException - Throws:
IOExceptionNoSuchMethodException
-
sendOAuth2
public static BitBucketPPRApiResponse sendOAuth2(org.jenkinsci.plugins.plaincredentials.StringCredentials credentials, com.github.scribejava.core.model.Verb verb, String url, String payload) throws InterruptedException, ExecutionException, IOException
-