Interface RestClientConfigurationChildBuilder
- All Known Implementing Classes:
AbstractConfigurationChildBuilder,AbstractSecurityConfigurationChildBuilder,AuthenticationConfigurationBuilder,RestClientConfigurationBuilder,SecurityConfigurationBuilder,ServerConfigurationBuilder,SslConfigurationBuilder
public interface RestClientConfigurationChildBuilder
ConfigurationChildBuilder.
- Since:
- 10.0
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new remote serveraddServers(String servers) Adds a list of remote servers in the form: host1[:port][;host2[:port]]...build()Builds a configuration objectconnectionTimeout(long connectionTimeout) This property defines the maximum socket connect timeout before giving up connecting to the server.followRedirects(boolean followRedirects) priorKnowledge(boolean enabled) Configure the client to use Prior KnowledgeSelects the protocol used by the client.security()Security ConfigurationsocketTimeout(long socketTimeout) This property defines the maximum socket read timeout in milliseconds before giving up waiting for bytes from the server.tcpKeepAlive(boolean keepAlive) Affects TCP KEEPALIVE on the TCP stack.tcpNoDelay(boolean tcpNoDelay) Affects TCP NODELAY on the TCP stack.withProperties(Properties properties) Configures this builder using the specified properties.
-
Method Details
-
addServer
ServerConfigurationBuilder addServer()Adds a new remote server -
addServers
Adds a list of remote servers in the form: host1[:port][;host2[:port]]... -
protocol
Selects the protocol used by the client. See @Protocol -
priorKnowledge
Configure the client to use Prior Knowledge -
followRedirects
-
connectionTimeout
This property defines the maximum socket connect timeout before giving up connecting to the server. Defaults to 60000 (1 minute) -
socketTimeout
This property defines the maximum socket read timeout in milliseconds before giving up waiting for bytes from the server. Defaults to 60000 (1 minute) -
security
SecurityConfigurationBuilder security()Security Configuration -
tcpNoDelay
Affects TCP NODELAY on the TCP stack. Defaults to enabled -
tcpKeepAlive
Affects TCP KEEPALIVE on the TCP stack. Defaults to disable -
withProperties
Configures this builder using the specified properties. SeeRestClientConfigurationBuilderfor a list. -
build
RestClientConfiguration build()Builds a configuration object
-