git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-01-20 23:14:35 +00:00
parent ef94b843cc
commit c3c0ea7265
1 changed files with 1 additions and 2 deletions

View File

@ -16,14 +16,13 @@
*/
package org.apache.activemq.util;
import javax.management.ObjectName;
public class JMXSupport {
static public String encodeObjectNamePart(String part) {
//return ObjectName.quote(part);
String answer = part.replaceAll("[\\:\\,\\'\\\"]", "_");
answer = answer.replaceAll("\\?", "&qe;");
answer = answer.replaceAll("=", "&");
answer = answer.replaceAll("\\*", "*");
return answer;
}
}