Class Util
- java.lang.Object
-
- org.glassfish.appclient.server.core.jws.Util
-
public class Util extends Object
- Author:
- tjquinn
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URI
getCodebase(org.glassfish.grizzly.http.server.Request gReq)
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.static String
toXMLEscaped(String content)
static String
toXMLEscapedInclAmp(String content)
-
-
-
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 tokensvalues
- Properties object containing name/value pairs for substitution- Returns:
- the original string with tokens substituted using their values from the Properties object
-
getCodebase
public static URI getCodebase(org.glassfish.grizzly.http.server.Request gReq)
-
-