Skip to content

Commit 577c18c

Browse files
corrected javadocs to reflect changes
1 parent 41cbee0 commit 577c18c

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

src/main/java/org/scribe/builder/api/DefaultApi10a.java

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,96 @@
88
/**
99
* Default implementation of the OAuth protocol, version 1.0a
1010
*
11-
* This class is meant to be extended by concrete implementations of the API.
11+
* This class is meant to be extended by concrete implementations of the API,
12+
* providing the endpoints and endpoint-http-verbs.
13+
*
1214
* If your Api adheres to the 1.0a protocol correctly, you just need to extend
1315
* this class and define the getters for your endpoints.
1416
*
17+
* If your Api does something a bit different, you can override the different
18+
* extractors or services, in order to fine-tune the process. Please read the
19+
* javadocs of the interfaces to get an idea of what to do.
20+
*
1521
* @author Pablo Fernandez
1622
*
1723
*/
1824
public abstract class DefaultApi10a implements Api
1925
{
20-
26+
/**
27+
* Returns the access token extractor.
28+
*
29+
* @return access token extractor
30+
*/
2131
public AccessTokenExtractor getAccessTokenExtractor()
2232
{
2333
return new TokenExtractorImpl();
2434
}
2535

36+
/**
37+
* Returns the base string extractor.
38+
*
39+
* @return base string extractor
40+
*/
2641
public BaseStringExtractor getBaseStringExtractor()
2742
{
2843
return new BaseStringExtractorImpl();
2944
}
3045

46+
/**
47+
* Returns the header extractor.
48+
*
49+
* @return header extractor
50+
*/
3151
public HeaderExtractor getHeaderExtractor()
3252
{
3353
return new HeaderExtractorImpl();
3454
}
3555

56+
/**
57+
* Returns the request token extractor.
58+
*
59+
* @return request token extractor
60+
*/
3661
public RequestTokenExtractor getRequestTokenExtractor()
3762
{
3863
return new TokenExtractorImpl();
3964
}
4065

66+
/**
67+
* Returns the signature service.
68+
*
69+
* @return signature service
70+
*/
4171
public SignatureService getSignatureService()
4272
{
4373
return new HMACSha1SignatureService();
4474
}
4575

76+
/**
77+
* Returns the timestamp service.
78+
*
79+
* @return timestamp service
80+
*/
4681
public TimestampService getTimestampService()
4782
{
4883
return new TimestampServiceImpl();
4984
}
5085

86+
/**
87+
* Returns the verb for the access token endpoint (defaults to POST)
88+
*
89+
* @return access token endpoint verb
90+
*/
5191
public Verb getAccessTokenVerb()
5292
{
5393
return Verb.POST;
5494
}
5595

96+
/**
97+
* Returns the verb for the request token endpoint (defaults to POST)
98+
*
99+
* @return request token endpoint verb
100+
*/
56101
public Verb getRequestTokenVerb()
57102
{
58103
return Verb.POST;

0 commit comments

Comments
 (0)