Here you can find the source of sanitizeURL(String url)
Parameter | Description |
---|---|
url | url as a string. |
public static String sanitizeURL(String url)
//package com.java2s; //License from project: Apache License public class Main { /**//from w w w .j a v a2 s .c om * Attaches the "/" at end of given url. * * @param url url as a string. * @return url which ends with "/" */ public static String sanitizeURL(String url) { if (!url.endsWith("/")) { url = url + "/"; } return url; } }