Revision 8731 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/GazetteerClient.java
GazetteerClient.java | ||
---|---|---|
100 | 100 |
* @param protocol |
101 | 101 |
*/ |
102 | 102 |
public GazetteerClient(String url, String protocol) { |
103 |
setProtocol(protocol); |
|
103 |
if (!(url.regionMatches(0, "http://", 0, 7))) { |
|
104 |
url = "http://" + url; |
|
105 |
} |
|
106 |
|
|
107 |
setProtocol(protocol); |
|
104 | 108 |
setSURL(url); |
105 | 109 |
|
106 | 110 |
try { |
Also available in: Unified diff