Package org.apache.hc.core5.http.impl.io
Class HttpService.Builder
- java.lang.Object
-
- org.apache.hc.core5.http.impl.io.HttpService.Builder
-
- Enclosing class:
- HttpService
public static final class HttpService.Builder extends java.lang.Object
Builder forHttpService
.- Since:
- 5.2
-
-
Field Summary
Fields Modifier and Type Field Description private ConnectionReuseStrategy
connReuseStrategy
private HttpProcessor
processor
private HttpServerRequestHandler
requestHandler
private Http1StreamListener
streamListener
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpService
build()
Create a new HTTP service.HttpService.Builder
withConnectionReuseStrategy(ConnectionReuseStrategy connReuseStrategy)
HttpService.Builder
withHttp1StreamListener(Http1StreamListener streamListener)
HttpService.Builder
withHttpProcessor(HttpProcessor processor)
HttpService.Builder
withHttpServerRequestHandler(HttpServerRequestHandler requestHandler)
-
-
-
Field Detail
-
processor
private HttpProcessor processor
-
requestHandler
private HttpServerRequestHandler requestHandler
-
connReuseStrategy
private ConnectionReuseStrategy connReuseStrategy
-
streamListener
private Http1StreamListener streamListener
-
-
Method Detail
-
withHttpProcessor
public HttpService.Builder withHttpProcessor(HttpProcessor processor)
-
withHttpServerRequestHandler
public HttpService.Builder withHttpServerRequestHandler(HttpServerRequestHandler requestHandler)
-
withConnectionReuseStrategy
public HttpService.Builder withConnectionReuseStrategy(ConnectionReuseStrategy connReuseStrategy)
-
withHttp1StreamListener
public HttpService.Builder withHttp1StreamListener(Http1StreamListener streamListener)
-
build
public HttpService build()
Create a new HTTP service.- Since:
- 5.2
-
-