class Endpoint {

	public URL generateGetCapabilitiesURL() throws MalformedURLException {
		StringBuilder buildstr = new StringBuilder(url.replaceAll("\\?[^?]*$", ""));
		buildstr.append("?request=GetCapabilities&service=");
		buildstr.append(type);
        if (type == EndpointType.SOS) {
            // current ncSOS implementation requires all or none
            buildstr.append("&version=1.0.0");
        }
		return new URL(buildstr.toString());
	}

	public  Endpoint(String url);

}