Here you can find the source of normalizeUrl(String url)
Parameter | Description |
---|---|
url | a parameter |
public static String normalizeUrl(String url)
//package com.java2s; //License from project: Apache License public class Main { /**//from ww w . ja va 2 s .com * Normalises URL according to section 3 of Oauth 2 Draft 23. * * @param url * @return */ public static String normalizeUrl(String url) { if (url != null && !url.isEmpty()) { int fragmentPos = url.indexOf("#"); if (fragmentPos > -1) { return url.substring(0, fragmentPos); } } return url; } }