class Endpoint {

	private void createComparisonString() {
		// TODO Fix regex to make it more readable
        // Description in words: capture everything up to last slash, not query string
		Pattern urlPattern = Pattern.compile("([^\\?]*/)(?:[^/\\?]*(?:\\?.*)?){1}");
		Matcher matcher = urlPattern.matcher(url);
		if (matcher.matches()) {
			comparisonString = matcher.group(1);
		}
		else {
			throw new UnsupportedOperationException("Cannot create endpoint with invalid URL");
		}
	}

	public  Endpoint(String url);

}