@@ -181,6 +181,7 @@ public int getProxyPort() {
181
181
* @param proxyPort
182
182
* The proxy port.
183
183
* @throws ClientException
184
+ * If any client side error occurs such as parameter invalid, an IO related failure,etc.
184
185
*/
185
186
public void setProxyPort (int proxyPort ) throws ClientException {
186
187
if (proxyPort <= 0 ) {
@@ -394,6 +395,8 @@ public void setConnectionTTL(long connectionTTL) {
394
395
/**
395
396
* Gets the flag of using {@link IdleConnectionReaper} to manage expired
396
397
* connection.
398
+ *
399
+ * @return True if it's enabled; False if it's disabled.
397
400
*/
398
401
public boolean isUseReaper () {
399
402
return useReaper ;
@@ -402,6 +405,9 @@ public boolean isUseReaper() {
402
405
/**
403
406
* Sets the flag of using {@link IdleConnectionReaper} to manage expired
404
407
* connection.
408
+ *
409
+ * @param useReaper
410
+ * The flag of using {@link IdleConnectionReaper}.
405
411
*/
406
412
public void setUseReaper (boolean useReaper ) {
407
413
this .useReaper = useReaper ;
@@ -430,13 +436,18 @@ public void setIdleConnectionTime(long idleConnectionTime) {
430
436
431
437
/**
432
438
* Gets the OSS's protocol (HTTP or HTTPS).
439
+ *
440
+ * @return The OSS's protocol.
433
441
*/
434
442
public Protocol getProtocol () {
435
443
return protocol ;
436
444
}
437
445
438
446
/**
439
447
* Sets the OSS's protocol (HTTP or HTTPS).
448
+ *
449
+ * @param protocol
450
+ * The OSS's protocol.
440
451
*/
441
452
public void setProtocol (Protocol protocol ) {
442
453
this .protocol = protocol ;
@@ -511,6 +522,9 @@ public boolean isSupportCname() {
511
522
*
512
523
* @param supportCname
513
524
* The flag if supporting CName.
525
+ *
526
+ * @return This {@link ClientConfiguration}, enabling additional method
527
+ * calls to be chained together.
514
528
*/
515
529
public ClientConfiguration setSupportCname (boolean supportCname ) {
516
530
this .supportCname = supportCname ;
@@ -534,6 +548,9 @@ public boolean isSLDEnabled() {
534
548
*
535
549
* @param enabled
536
550
* 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.
537
554
*/
538
555
public ClientConfiguration setSLDEnabled (boolean enabled ) {
539
556
this .sldEnabled = enabled ;
@@ -571,13 +588,18 @@ public void setRequestTimeoutEnabled(boolean requestTimeoutEnabled) {
571
588
572
589
/**
573
590
* Sets the timeout value in millisecond. By default it's 5 min.
591
+ *
592
+ * @param requestTimeout
593
+ * The timeout value in millisecond.
574
594
*/
575
595
public void setRequestTimeout (int requestTimeout ) {
576
596
this .requestTimeout = requestTimeout ;
577
597
}
578
598
579
599
/**
580
600
* Gets the timeout value in millisecond.
601
+ *
602
+ * @return the tiemout value.
581
603
*/
582
604
public int getRequestTimeout () {
583
605
return requestTimeout ;
@@ -586,6 +608,8 @@ public int getRequestTimeout() {
586
608
/**
587
609
* Sets the slow request's latency threshold. If a request's latency is more
588
610
* 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.
589
613
*/
590
614
public long getSlowRequestsThreshold () {
591
615
return slowRequestsThreshold ;
@@ -594,6 +618,9 @@ public long getSlowRequestsThreshold() {
594
618
/**
595
619
* Gets the slow request's latency threshold. If a request's latency is more
596
620
* than it, the request will be logged.
621
+ *
622
+ * @param slowRequestsThreshold
623
+ * The slow request's latency threshold in millisecond.
597
624
*/
598
625
public void setSlowRequestsThreshold (long slowRequestsThreshold ) {
599
626
this .slowRequestsThreshold = slowRequestsThreshold ;
@@ -603,6 +630,8 @@ public void setSlowRequestsThreshold(long slowRequestsThreshold) {
603
630
* Gets the default http headers. All these headers would be automatically
604
631
* added in every request. And if a header is also specified in the request,
605
632
* the default one will be overwritten.
633
+ *
634
+ * @return The default http headers.
606
635
*/
607
636
public Map <String , String > getDefaultHeaders () {
608
637
return defaultHeaders ;
@@ -666,6 +695,7 @@ public List<RequestSigner> getSignerHandlers() {
666
695
* Sets signer handlers using for authentication of the proxy server.
667
696
*
668
697
* @param signerHandlers
698
+ * A list of {@link RequestSigner} handlers.
669
699
*/
670
700
public void setSignerHandlers (List <RequestSigner > signerHandlers ) {
671
701
if (signerHandlers == null ) {
@@ -692,6 +722,7 @@ public SignVersion getSignatureVersion() {
692
722
* Sets signature version for all request.
693
723
*
694
724
* @param signatureVersion
725
+ * The signature version.
695
726
*/
696
727
public void setSignatureVersion (SignVersion signatureVersion ) {
697
728
this .signatureVersion = signatureVersion ;
0 commit comments