- java.lang.Object
-
- com.rabbitmq.http.client.ClientParameters
-
-
Constructor Summary
Constructors Constructor Description ClientParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpLayer.HttpLayerFactorygetHttpLayerFactory()StringgetPassword()RestTemplateConfiguratorgetRestTemplateConfigurator()Deprecated, for removal: This API element is subject to removal in a future version.usehttpLayerFactoryinsteadURLgetUrl()StringgetUsername()ClientParametershttpLayerFactory(HttpLayer.HttpLayerFactory httpLayerFactory)Set theHttpLayer.HttpLayerFactoryto use.ClientParameterspassword(String password)Set the password to use when authenticating.ClientParametersrestTemplateConfigurator(RestTemplateConfigurator restTemplateConfigurator)Deprecated, for removal: This API element is subject to removal in a future version.usehttpLayerFactoryinsteadClientParametersurl(String url)Set the URL to use.ClientParametersurl(URL url)Set the URL to use.ClientParametersusername(String username)Set the username to use when authenticating.
-
-
-
Method Detail
-
url
public ClientParameters url(URL url)
Set the URL to use.It is not expected that the URL contains any user info. Use
url(String)user info must be extracted from the URL and assigned to username and password.- Parameters:
url- the URL- Returns:
- this client parameters instance
-
url
public ClientParameters url(String url) throws MalformedURLException
Set the URL to use.The URL can contain user info. If so, they are automatically assigned to the username and password properties of this instance.
- Parameters:
url- the URL- Returns:
- this client parameters instance
- Throws:
MalformedURLException- for a badly formed URL.
-
username
public ClientParameters username(String username)
Set the username to use when authenticating.- Parameters:
username- the username- Returns:
- this client parameters instance
-
password
public ClientParameters password(String password)
Set the password to use when authenticating.- Parameters:
password- the password- Returns:
- this client parameters instance
-
restTemplateConfigurator
@Deprecated(since="4.0.0", forRemoval=true) public ClientParameters restTemplateConfigurator(RestTemplateConfigurator restTemplateConfigurator)
Deprecated, for removal: This API element is subject to removal in a future version.usehttpLayerFactoryinsteadSet aRestTemplateConfiguratorto post-process theClient'sRestTemplate.The default is to use
HttpComponentsRestTemplateConfiguratorand so usingHttpComponentsClientHttpRequestFactoryin theRestTemplateto create requests.- Parameters:
restTemplateConfigurator- the configurator to use- Returns:
- this client parameters instance
- See Also:
RestTemplateConfigurator
-
getUrl
public URL getUrl()
-
getUsername
public String getUsername()
-
getPassword
public String getPassword()
-
getRestTemplateConfigurator
@Deprecated(since="4.0.0", forRemoval=true) public RestTemplateConfigurator getRestTemplateConfigurator()
Deprecated, for removal: This API element is subject to removal in a future version.usehttpLayerFactoryinstead- Returns:
-
getHttpLayerFactory
public HttpLayer.HttpLayerFactory getHttpLayerFactory()
-
httpLayerFactory
public ClientParameters httpLayerFactory(HttpLayer.HttpLayerFactory httpLayerFactory)
Set theHttpLayer.HttpLayerFactoryto use.- Parameters:
httpLayerFactory-- Returns:
- this client parameters instance
- See Also:
JdkHttpClientHttpLayer.configure()
-
-