Strabon
changeset 1274:d5b784963c93
made HTTPClient.getConnectionURL public in order for a client of SPARQLEndpoint to have access to the URL connection to the endpoint.
author | Babis Nikolaou <charnik@di.uoa.gr> |
---|---|
date | Fri Oct 18 16:33:33 2013 +0200 (2013-10-18) |
parents | 95e2d2650b44 |
children | 38cd891af4de |
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 Fri Oct 18 17:28:33 2013 +0300 1.2 +++ b/endpoint-client/src/main/java/eu/earthobservatory/org/StrabonEndpoint/client/HTTPClient.java Fri Oct 18 16:33:33 2013 +0200 1.3 @@ -106,7 +106,7 @@ 1.4 * 1.5 * @return 1.6 */ 1.7 - protected String getConnectionURL() { 1.8 - return "http://" + host + ":" + port + "/" + endpointName; 1.9 + public String getConnectionURL() { 1.10 + return "http://" + host + ((port == 80) ? "":":" + port) + "/" + endpointName; 1.11 } 1.12 }