Java Code Examples for org.apache.commons.lang.StringUtils.containsNone()

The following are Jave code examples for showing how to use containsNone() of the org.apache.commons.lang.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: lams   File: WebUtil.java   Source Code and License Vote up 3 votes
/**
    * <p>
    * This helper append the parameter deliminator for a url.
    * </p>
    * It is using a null safe String util method to checkup the url String and append proper deliminator if necessary.
    *
    * @param url
    *            the url needs to append deliminator.
    * @return target url with the deliminator;
    */
   public static String appendParameterDeliminator(String url) {
if (url == null) {
    return null;
} else if (StringUtils.containsNone(url, "?")) {
    return url + "?";
} else {
    return url + "&";
}
   }