Class HttpRemoteQueryBuilder
- java.lang.Object
-
- io.streamthoughts.azkarra.http.query.HttpRemoteQueryBuilder
-
public class HttpRemoteQueryBuilder extends Object
Builder class for creating a newHttpRemoteQueryClient
instance.
-
-
Constructor Summary
Constructors Constructor Description HttpRemoteQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRemoteQueryClient
build()
Builds theHttpRemoteQueryClient
instance.HttpRemoteQueryBuilder
enablePasswordAuthentication(boolean enablePasswordAuthentication)
Sets if authentication is required.HttpRemoteQueryBuilder
setBasePath(String basePath)
Sets the relative URL base path.HttpRemoteQueryBuilder
setIgnoreHostnameVerification(boolean ignoreHostnameVerification)
Sets if hostname verification must be ignore when SSL is enable.HttpRemoteQueryBuilder
setSerdes(Serdes<QueryResult> serdes)
HttpRemoteQueryBuilder
setSSLContextFactory(SSLContextFactory sslContextFactory)
Sets theSSLContextFactory
which is used for initializing HTTP client with SSL.
-
-
-
Method Detail
-
setSerdes
public HttpRemoteQueryBuilder setSerdes(Serdes<QueryResult> serdes)
-
setSSLContextFactory
public HttpRemoteQueryBuilder setSSLContextFactory(SSLContextFactory sslContextFactory)
Sets theSSLContextFactory
which is used for initializing HTTP client with SSL.- Parameters:
sslContextFactory
- theSSLContextFactory
instance.- Returns:
this
-
setIgnoreHostnameVerification
public HttpRemoteQueryBuilder setIgnoreHostnameVerification(boolean ignoreHostnameVerification)
Sets if hostname verification must be ignore when SSL is enable.- Parameters:
ignoreHostnameVerification
-true
to ignore hostname verification,false
otherwise.- Returns:
this
-
setBasePath
public HttpRemoteQueryBuilder setBasePath(String basePath)
Sets the relative URL base path.- Parameters:
basePath
- the relative base path.- Returns:
this
-
enablePasswordAuthentication
public HttpRemoteQueryBuilder enablePasswordAuthentication(boolean enablePasswordAuthentication)
Sets if authentication is required.- Parameters:
enablePasswordAuthentication
- thePasswordCredentials
supplier.- Returns:
this
-
build
public HttpRemoteQueryClient build()
Builds theHttpRemoteQueryClient
instance.- Returns:
- the new
HttpRemoteQueryClient
instance.
-
-