Here you can find the source of cleanUrl(String uriStr)
public static String cleanUrl(String uriStr)
//package com.java2s; //License from project: Open Source License public class Main { private static boolean DEVELOPMENT_ENV; private static final String CONTEXT_PATH = ""; public static String cleanUrl(String uriStr) { if (isDevelopment()) { return uriStr.replace(getContextPath(), ""); }//from w w w. j av a 2s . co m return uriStr; } public static boolean isDevelopment() { return DEVELOPMENT_ENV; } public static String getContextPath() { return CONTEXT_PATH; } }