Class RestTemplateNodeLocator

java.lang.Object
org.springframework.amqp.rabbit.connection.RestTemplateNodeLocator
All Implemented Interfaces:
NodeLocator<org.springframework.web.client.RestTemplate>

@Deprecated(since="4.2", forRemoval=true) public class RestTemplateNodeLocator extends Object implements NodeLocator<org.springframework.web.client.RestTemplate>
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.2 in favor of RestClientNodeLocator since the RestTemplate is deprecated in Spring Framework 7.1.
A NodeLocator using the RestTemplate.
Since:
3.0
  • Field Summary

    Fields inherited from interface NodeLocator

    LOGGER
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.client.RestTemplate
    createClient(String userName, String password)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a client for subsequent use.
    @Nullable Map<String,Object>
    restCall(org.springframework.web.client.RestTemplate client, String baseUri, String vhost, String queue)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve a map of queue properties using the RabbitMQ Management REST API.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface NodeLocator

    close, locate
  • Constructor Details

    • RestTemplateNodeLocator

      public RestTemplateNodeLocator()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • createClient

      public org.springframework.web.client.RestTemplate createClient(String userName, String password)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeLocator
      Create a client for subsequent use.
      Specified by:
      createClient in interface NodeLocator<org.springframework.web.client.RestTemplate>
      Parameters:
      userName - the username.
      password - the password.
      Returns:
      the client.
    • restCall

      public @Nullable Map<String,Object> restCall(org.springframework.web.client.RestTemplate client, String baseUri, String vhost, String queue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: NodeLocator
      Retrieve a map of queue properties using the RabbitMQ Management REST API.
      Specified by:
      restCall in interface NodeLocator<org.springframework.web.client.RestTemplate>
      Parameters:
      client - the client.
      baseUri - the base uri.
      vhost - the virtual host.
      queue - the queue name.
      Returns:
      the map of queue properties.