All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.server.ServerAddress Maven / Gradle / Ivy

There is a newer version: 2.6.3
Show newest version
package play.server;

import javax.annotation.ParametersAreNonnullByDefault;

@ParametersAreNonnullByDefault
public class ServerAddress {
  public final String domain;
  public final int port;
  public final String host;

  ServerAddress(String domain, int port, String host) {
    this.host = host;
    this.port = port;
    this.domain = domain;
  }

  @Override
  public String toString() {
    return String.format("%s:%s", domain, port);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy