Package com.rabbitmq.http.client
Class ClientCreationContext
- java.lang.Object
-
- com.rabbitmq.http.client.ClientCreationContext
-
public class ClientCreationContext extends Object
Some information that can be useful when configuring aClient
'sRestTemplate
.- Since:
- 3.6.0
- See Also:
RestTemplateConfigurator.configure(ClientCreationContext)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientParameters
getClientParameters()
ClientParameters
used for thisClient
instance.org.springframework.web.client.RestTemplate
getRestTemplate()
TheRestTemplate
created by theClient
.URI
getRootUri()
The root URI of the management API.
-
-
-
Method Detail
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate()
TheRestTemplate
created by theClient
.RestTemplateConfigurator.configure(ClientCreationContext)
can create a new instance and return it, but it usually changes the passed-in instance.- Returns:
- the REST template
-
getClientParameters
public ClientParameters getClientParameters()
- Returns:
- the client parameters used for the
Client
instance creation
-
getRootUri
public URI getRootUri()
The root URI of the management API.- Returns:
- the root URI
-
-