Strabon

changeset 1275:6dad7863e24d temporals

HTTPClient.getConnection does not print the port when it is 80
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Oct 18 16:35:22 2013 +0200 (2013-10-18)
parents 20f097eecaaa
children 3ec1c2e8f6d3
files endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/HTTPClient.java
line diff
     1.1 --- a/endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/HTTPClient.java	Tue Oct 15 17:24:37 2013 +0300
     1.2 +++ b/endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/HTTPClient.java	Fri Oct 18 16:35:22 2013 +0200
     1.3 @@ -107,6 +107,6 @@
     1.4  	 * @return
     1.5  	 */
     1.6  	public String getConnectionURL() {
     1.7 -		return "http://" + host + ":" + port + "/" + endpointName; 
     1.8 +		return "http://" + host + ((port == 80) ? "":":" + port) + "/" + endpointName; 
     1.9  	}
    1.10  }