Here you can find the source of normalizeCapabilitiesUrl(String url)
Parameter | Description |
---|---|
url | URL |
Parameter | Description |
---|---|
MalformedURLException | in case of malformed URL |
public static String normalizeCapabilitiesUrl(String url) throws MalformedURLException
//package com.java2s; // License: GPL. For details, see LICENSE file. import java.net.MalformedURLException; import java.net.URL; public class Main { /**//from w w w .j a v a2 s .co m * @param url URL * @return normalized URL * @throws MalformedURLException in case of malformed URL * @since 10993 */ public static String normalizeCapabilitiesUrl(String url) throws MalformedURLException { URL inUrl = new URL(url); URL ret = new URL(inUrl.getProtocol(), inUrl.getHost(), inUrl.getPort(), inUrl.getFile()); return ret.toExternalForm(); } }