Class Util


  • public class Util
    extends Object
    Author:
    tjquinn
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • replaceTokens

        public static String replaceTokens​(String s,
                                           Properties values)
        Searches for placeholders of the form ${token-name} in the input String, retrieves the property with name token-name from the Properties object, and (if found) replaces the token in the input string with the property value.
        Parameters:
        s - String possibly containing tokens
        values - Properties object containing name/value pairs for substitution
        Returns:
        the original string with tokens substituted using their values from the Properties object
      • toXMLEscapedInclAmp

        public static String toXMLEscapedInclAmp​(String content)
      • toXMLEscaped

        public static String toXMLEscaped​(String content)
      • getCodebase

        public static URI getCodebase​(org.glassfish.grizzly.http.server.Request gReq)