C# 클래스 CSharp.Bitbucket.Api.Impl.BitbucketTemplate

This is the central class for interacting with Bitbucket.

All Bitbucket operations require OAuth authentication. To perform such operations, BitbucketTemplate must be constructed with the minimal amount of information required to sign requests to Bitbucket's API with an OAuth Authorization header.

상속: Spring.Social.OAuth1.AbstractOAuth1ApiBinding, IBitbucket
파일 보기 프로젝트 열기: scottksmith95/CSharp.Bitbucket

공개 메소드들

메소드 설명
BitbucketTemplate ( string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret ) : System

Create a new instance of BitbucketTemplate.

보호된 메소드들

메소드 설명
ConfigureRestTemplate ( RestTemplate restTemplate ) : void

Enables customization of the RestTemplate used to consume provider API resources.

An example use case might be to configure a custom error handler. Note that this method is called after the RestTemplate has been configured with the message converters returned from GetMessageConverters().

GetMessageConverters ( ) : IList

Returns a list of IHttpMessageConverters to be used by the internal RestTemplate.

This implementation adds SpringJsonHttpMessageConverter and ByteArrayHttpMessageConverter to the default list.

비공개 메소드들

메소드 설명
GetJsonMessageConverter ( ) : SpringJsonHttpMessageConverter

Returns a SpringJsonHttpMessageConverter to be used by the internal RestTemplate. Override to customize the message converter (for example, to set a custom object mapper or supported media types).

InitSubApis ( ) : void

메소드 상세

BitbucketTemplate() 공개 메소드

Create a new instance of BitbucketTemplate.
public BitbucketTemplate ( string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret ) : System
consumerKey string The application's API key.
consumerSecret string The application's API secret.
accessToken string An access token acquired through OAuth authentication with Bitbucket.
accessTokenSecret string An access token secret acquired through OAuth authentication with Bitbucket.
리턴 System

ConfigureRestTemplate() 보호된 메소드

Enables customization of the RestTemplate used to consume provider API resources.
An example use case might be to configure a custom error handler. Note that this method is called after the RestTemplate has been configured with the message converters returned from GetMessageConverters().
protected ConfigureRestTemplate ( RestTemplate restTemplate ) : void
restTemplate RestTemplate The RestTemplate to configure.
리턴 void

GetMessageConverters() 보호된 메소드

Returns a list of IHttpMessageConverters to be used by the internal RestTemplate.
This implementation adds SpringJsonHttpMessageConverter and ByteArrayHttpMessageConverter to the default list.
protected GetMessageConverters ( ) : IList
리턴 IList