Class RestTemplateNodeLocator
java.lang.Object
org.springframework.amqp.rabbit.connection.RestTemplateNodeLocator
- All Implemented Interfaces:
- NodeLocator<RestTemplate>
A 
NodeLocator using the RestTemplate.- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan
- 
Field SummaryFields inherited from interface org.springframework.amqp.rabbit.connection.NodeLocatorLOGGER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateClient(String userName, String password) Create a client for subsequent use.restCall(RestTemplate client, String baseUri, String vhost, String queue) Retrieve a map of queue properties using the RabbitMQ Management REST API.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.amqp.rabbit.connection.NodeLocatorclose, locate
- 
Constructor Details- 
RestTemplateNodeLocatorpublic RestTemplateNodeLocator()
 
- 
- 
Method Details- 
createClientDescription copied from interface:NodeLocatorCreate a client for subsequent use.- Specified by:
- createClientin interface- NodeLocator<RestTemplate>
- Parameters:
- userName- the user name.
- password- the password.
- Returns:
- the client.
 
- 
restCall@Nullable public Map<String,Object> restCall(RestTemplate client, String baseUri, String vhost, String queue) Description copied from interface:NodeLocatorRetrieve a map of queue properties using the RabbitMQ Management REST API.- Specified by:
- restCallin interface- NodeLocator<RestTemplate>
- Parameters:
- client- the client.
- baseUri- the base uri.
- vhost- the virtual host.
- queue- the queue name.
- Returns:
- the map of queue properties.
 
 
-