@@ -144,6 +144,7 @@ private NettyHttpService(String serviceName,
144144 * Creates a {@link Builder} for creating new instance of {@link NettyHttpService}.
145145 *
146146 * @param serviceName name of the http service. The name will be used to name threads created for the service.
147+ * @return builder for creating a NettyHttpService
147148 */
148149 public static Builder builder (String serviceName ) {
149150 return new Builder (serviceName );
@@ -625,26 +626,44 @@ public Builder setHost(String host) {
625626 return this ;
626627 }
627628
629+ /**
630+ * Set the HTTP chunk limit.
631+ *
632+ * @param value the chunk limit
633+ * @return instance of {@code Builder}.
634+ */
628635 public Builder setHttpChunkLimit (int value ) {
629636 this .httpChunkLimit = value ;
630637 return this ;
631638 }
632639
633640 /**
634641 * Enable SSL by using the provided SSL information.
642+ *
643+ * @param sslConfig the SSL configuration
644+ * @return instance of {@code Builder}.
635645 */
636646 public Builder enableSSL (SSLConfig sslConfig ) {
637647 return enableSSL (new SSLHandlerFactory (sslConfig ));
638648 }
639649
640650 /**
641651 * Enable SSL by using the given {@link SSLHandlerFactory} to create {@link SslHandler}.
652+ *
653+ * @param sslHandlerFactory the factory for creating SslHandlers
654+ * @return instance of {@code Builder}.
642655 */
643656 public Builder enableSSL (SSLHandlerFactory sslHandlerFactory ) {
644657 this .sslHandlerFactory = sslHandlerFactory ;
645658 return this ;
646659 }
647660
661+ /**
662+ * Set the {@link ExceptionHandler} for the service.
663+ *
664+ * @param exceptionHandler the exception handler to use
665+ * @return instance of {@code Builder}.
666+ */
648667 public Builder setExceptionHandler (ExceptionHandler exceptionHandler ) {
649668 if (exceptionHandler == null ) {
650669 throw new IllegalArgumentException ("exceptionHandler cannot be null" );
0 commit comments