Class ServerAddressByClientCIDR

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class ServerAddressByClientCIDR
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
    • Constructor Detail

      • ServerAddressByClientCIDR

        public ServerAddressByClientCIDR​(@NonNull
                                         @NonNull java.lang.String clientCIDR,
                                         @NonNull
                                         @NonNull java.lang.String serverAddress)
      • ServerAddressByClientCIDR

        public ServerAddressByClientCIDR()
    • Method Detail

      • getClientCIDR

        @NonNull
        public @NonNull java.lang.String getClientCIDR()
        The CIDR with which clients can match their IP to figure out the server address that they should use.
      • getServerAddress

        @NonNull
        public @NonNull java.lang.String getServerAddress()
        Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.
      • setClientCIDR

        public void setClientCIDR​(@NonNull
                                  @NonNull java.lang.String clientCIDR)
        The CIDR with which clients can match their IP to figure out the server address that they should use.
      • setServerAddress

        public void setServerAddress​(@NonNull
                                     @NonNull java.lang.String serverAddress)
        Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object