Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
com.griddynamics.jagger.invoker.v2.JHttpEndpoint.JHttpEndpoint ( Protocol  protocol,
String  hostname,
int  port 
)
Parameters
protocolprotocol of endpoint
hostnamehostname of endpoint
portport of endpoint

Definition at line 83 of file JHttpEndpoint.java.

83  {
84  Objects.requireNonNull(protocol);
85  this.protocol = protocol;
86 
87  if (org.springframework.util.StringUtils.isEmpty(hostname)) {
88  throw new IllegalArgumentException(format("hostname must non-empty. Provided value: %s", hostname));
89  }
90  this.hostname = hostname;
91 
92  if (port <= 0) {
93  throw new IllegalArgumentException(format("port number must be > 0. Provided value: %s", port));
94  }
95  this.port = port;
96  }