Skip to content

Commit 35bfac9

Browse files
committed
fix doc error.
1 parent c0a8240 commit 35bfac9

18 files changed

+1158
-221
lines changed

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@
182182
<goals>
183183
<goal>jar</goal>
184184
</goals>
185+
<configuration>
186+
<!-- <additionalparam>-Xdoclint:none</additionalparam> -->
187+
<additionalJOption>-Xdoclint:none</additionalJOption>
188+
</configuration>
185189
</execution>
186190
</executions>
187191
</plugin>

src/main/java/com/aliyun/oss/ClientConfiguration.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public int getProxyPort() {
181181
* @param proxyPort
182182
* The proxy port.
183183
* @throws ClientException
184+
* If any client side error occurs such as parameter invalid, an IO related failure,etc.
184185
*/
185186
public void setProxyPort(int proxyPort) throws ClientException {
186187
if (proxyPort <= 0) {
@@ -394,6 +395,8 @@ public void setConnectionTTL(long connectionTTL) {
394395
/**
395396
* Gets the flag of using {@link IdleConnectionReaper} to manage expired
396397
* connection.
398+
*
399+
* @return True if it's enabled; False if it's disabled.
397400
*/
398401
public boolean isUseReaper() {
399402
return useReaper;
@@ -402,6 +405,9 @@ public boolean isUseReaper() {
402405
/**
403406
* Sets the flag of using {@link IdleConnectionReaper} to manage expired
404407
* connection.
408+
*
409+
* @param useReaper
410+
* The flag of using {@link IdleConnectionReaper}.
405411
*/
406412
public void setUseReaper(boolean useReaper) {
407413
this.useReaper = useReaper;
@@ -430,13 +436,18 @@ public void setIdleConnectionTime(long idleConnectionTime) {
430436

431437
/**
432438
* Gets the OSS's protocol (HTTP or HTTPS).
439+
*
440+
* @return The OSS's protocol.
433441
*/
434442
public Protocol getProtocol() {
435443
return protocol;
436444
}
437445

438446
/**
439447
* Sets the OSS's protocol (HTTP or HTTPS).
448+
*
449+
* @param protocol
450+
* The OSS's protocol.
440451
*/
441452
public void setProtocol(Protocol protocol) {
442453
this.protocol = protocol;
@@ -511,6 +522,9 @@ public boolean isSupportCname() {
511522
*
512523
* @param supportCname
513524
* The flag if supporting CName.
525+
*
526+
* @return This {@link ClientConfiguration}, enabling additional method
527+
* calls to be chained together.
514528
*/
515529
public ClientConfiguration setSupportCname(boolean supportCname) {
516530
this.supportCname = supportCname;
@@ -534,6 +548,9 @@ public boolean isSLDEnabled() {
534548
*
535549
* @param enabled
536550
* True if it's enabled; False if it's disabled.
551+
*
552+
* @return This {@link ClientConfiguration}, enabling additional method
553+
* calls to be chained together.
537554
*/
538555
public ClientConfiguration setSLDEnabled(boolean enabled) {
539556
this.sldEnabled = enabled;
@@ -571,13 +588,18 @@ public void setRequestTimeoutEnabled(boolean requestTimeoutEnabled) {
571588

572589
/**
573590
* Sets the timeout value in millisecond. By default it's 5 min.
591+
*
592+
* @param requestTimeout
593+
* The timeout value in millisecond.
574594
*/
575595
public void setRequestTimeout(int requestTimeout) {
576596
this.requestTimeout = requestTimeout;
577597
}
578598

579599
/**
580600
* Gets the timeout value in millisecond.
601+
*
602+
* @return the tiemout value.
581603
*/
582604
public int getRequestTimeout() {
583605
return requestTimeout;
@@ -586,6 +608,8 @@ public int getRequestTimeout() {
586608
/**
587609
* Sets the slow request's latency threshold. If a request's latency is more
588610
* than it, the request will be logged. By default the threshold is 5 min.
611+
*
612+
* @return The slow request's latency threshold in millisecond.
589613
*/
590614
public long getSlowRequestsThreshold() {
591615
return slowRequestsThreshold;
@@ -594,6 +618,9 @@ public long getSlowRequestsThreshold() {
594618
/**
595619
* Gets the slow request's latency threshold. If a request's latency is more
596620
* than it, the request will be logged.
621+
*
622+
* @param slowRequestsThreshold
623+
* The slow request's latency threshold in millisecond.
597624
*/
598625
public void setSlowRequestsThreshold(long slowRequestsThreshold) {
599626
this.slowRequestsThreshold = slowRequestsThreshold;
@@ -603,6 +630,8 @@ public void setSlowRequestsThreshold(long slowRequestsThreshold) {
603630
* Gets the default http headers. All these headers would be automatically
604631
* added in every request. And if a header is also specified in the request,
605632
* the default one will be overwritten.
633+
*
634+
* @return The default http headers.
606635
*/
607636
public Map<String, String> getDefaultHeaders() {
608637
return defaultHeaders;
@@ -666,6 +695,7 @@ public List<RequestSigner> getSignerHandlers() {
666695
* Sets signer handlers using for authentication of the proxy server.
667696
*
668697
* @param signerHandlers
698+
* A list of {@link RequestSigner} handlers.
669699
*/
670700
public void setSignerHandlers(List<RequestSigner> signerHandlers) {
671701
if (signerHandlers == null) {
@@ -692,6 +722,7 @@ public SignVersion getSignatureVersion() {
692722
* Sets signature version for all request.
693723
*
694724
* @param signatureVersion
725+
* The signature version.
695726
*/
696727
public void setSignatureVersion(SignVersion signatureVersion) {
697728
this.signatureVersion = signatureVersion;

0 commit comments

Comments
 (0)