Class AbstractBitbucketApi

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.internal.api.AbstractBitbucketApi
Direct Known Subclasses:
BitbucketCloudApiClient, BitbucketServerAPIClient

@Restricted(org.kohsuke.accmod.restrictions.ProtectedExternally.class) public abstract class AbstractBitbucketApi extends Object
  • Field Details

    • API_RATE_LIMIT_STATUS_CODE

      protected static final int API_RATE_LIMIT_STATUS_CODE
      See Also:
    • logger

      protected final Logger logger
    • context

      protected org.apache.http.client.protocol.HttpClientContext context
  • Constructor Details

    • AbstractBitbucketApi

      public AbstractBitbucketApi()
  • Method Details

    • truncateMiddle

      protected String truncateMiddle(@CheckForNull String value, int maxLength)
    • buildResponseException

      protected BitbucketRequestException buildResponseException(org.apache.http.client.methods.CloseableHttpResponse response, String errorMessage)
    • getResponseContent

      protected String getResponseContent(org.apache.http.client.methods.CloseableHttpResponse response) throws IOException
      Throws:
      IOException
    • setClientProxyParams

      protected void setClientProxyParams(String host, org.apache.http.impl.client.HttpClientBuilder builder)