java.lang.Object
org.springframework.cloud.servicebroker.model.binding.Endpoint

public class Endpoint extends Object
The network endpoints that the Application uses to connect to the Service Instance. If present, all Service Instance endpoints that are relevant for the Application MUST be in this list, even if endpoints are not reachable or host names are not resolvable from outside the service network.
Author:
Roy Clarkson
See Also:
  • Constructor Details

    • Endpoint

      public Endpoint()
      Construct a new Endpoint.
    • Endpoint

      public Endpoint(String host, List<String> ports, Endpoint.Protocol protocol)
      Construct a new Endpoint.
      Parameters:
      host - the host
      ports - the list of ports
      protocol - the network protocol
  • Method Details

    • getHost

      public String getHost()
      Get the host.
      Returns:
      the host
    • getPorts

      public List<String> getPorts()
      Get the list of ports.
      Returns:
      the ports
    • getProtocol

      public Endpoint.Protocol getProtocol()
      Get the network protocol.
      Returns:
      the protocol
    • builder

      public static Endpoint.EndpointBuilder builder()
      Create a builder that provides a fluent API for constructing an Endpoint.
      Returns:
      the builder
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object