Class SSLParamConfigurator.Builder
- java.lang.Object
-
- org.glassfish.jersey.client.innate.http.SSLParamConfigurator.Builder
-
- Enclosing class:
- SSLParamConfigurator
public static final class SSLParamConfigurator.Builder extends Object
Builder of theSSLParamConfiguratorinstance.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLParamConfiguratorbuild()Builds theSSLParamConfiguratorinstance.SSLParamConfigurator.Builderconfiguration(Configuration configuration)Sets the SNIHostName from theConfigurationinstance.SSLParamConfigurator.Builderheaders(Map<String,List<Object>> httpHeaders)Sets the HTTP request headersSSLParamConfigurator.Builderrequest(ClientRequest clientRequest)Sets the SNIHostName andURIfrom theClientRequestinstance.SSLParamConfigurator.BuildersetSNIAlways(boolean setAlways)Sets SNI only whenHttpHeaders.HOSTdiffers from the request host name if set tofalse.SSLParamConfigurator.Builderuri(URI uri)Sets the HTTP requestURIinstance.
-
-
-
Method Detail
-
request
public SSLParamConfigurator.Builder request(ClientRequest clientRequest)
Sets the SNIHostName andURIfrom theClientRequestinstance.- Parameters:
clientRequest- theClientRequest- Returns:
- the builder instance
-
configuration
public SSLParamConfigurator.Builder configuration(Configuration configuration)
Sets the SNIHostName from theConfigurationinstance.- Parameters:
configuration- theConfiguration- Returns:
- the builder instance
-
uri
public SSLParamConfigurator.Builder uri(URI uri)
Sets the HTTP requestURIinstance.- Parameters:
uri- The request uri- Returns:
- the builder instance
-
headers
public SSLParamConfigurator.Builder headers(Map<String,List<Object>> httpHeaders)
Sets the HTTP request headers- Parameters:
httpHeaders- the http request headers- Returns:
- the builder instance
-
setSNIAlways
public SSLParamConfigurator.Builder setSNIAlways(boolean setAlways)
Sets SNI only whenHttpHeaders.HOSTdiffers from the request host name if set tofalse. Default isfalse.- Parameters:
setAlways- set SNI always (default)- Returns:
- the builder instance
-
build
public SSLParamConfigurator build()
Builds theSSLParamConfiguratorinstance.- Returns:
- the configured
SSLParamConfiguratorinstance.
-
-