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 Summary
Modifier and TypeFieldDescriptionprotected static final int
protected org.apache.http.client.protocol.HttpClientContext
protected final Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BitbucketRequestException
buildResponseException
(org.apache.http.client.methods.CloseableHttpResponse response, String errorMessage) protected String
getResponseContent
(org.apache.http.client.methods.CloseableHttpResponse response) protected void
setClientProxyParams
(String host, org.apache.http.impl.client.HttpClientBuilder builder) protected String
truncateMiddle
(String value, int maxLength)
-
Field Details
-
API_RATE_LIMIT_STATUS_CODE
protected static final int API_RATE_LIMIT_STATUS_CODE- See Also:
-
logger
-
context
protected org.apache.http.client.protocol.HttpClientContext context
-
-
Constructor Details
-
AbstractBitbucketApi
public AbstractBitbucketApi()
-
-
Method Details
-
truncateMiddle
-
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)
-