Java URL Clear cleanUrl(String uriStr)

Here you can find the source of cleanUrl(String uriStr)

Description

clean Url

License

Open Source License

Declaration

public static String cleanUrl(String uriStr) 

Method Source Code

//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;
    }
}

Related

  1. cleanURL(final String input)
  2. cleanUrl(String encodedUrl)
  3. cleanUrl(String url)
  4. cleanUrl(String url)
  5. cleanUrlTitle(String programTitle)