",service=" + serviceName +
",port=" + port +
",address=" + address);
return (name);
} catch (Exception e) {
throw new MalformedObjectNameException
("Cannot create object name for " + connector+e);
}
} else if ("org.apache.coyote.tomcat4.CoyoteConnector".equals
(connector.getClass().getName())) {
try {
String address = (String)
PropertyUtils.getSimpleProperty(connector, "address");
Integer port = (Integer)
PropertyUtils.getSimpleProperty(connector, "port");
Service service = connector.getService();
String serviceName = null;
if (service != null)
serviceName = service.getName();
name = new ObjectName(domain + ":type=Connector" +
",service=" + serviceName +
",port=" + port +
",address=" + address);
return (name);
} catch (Exception e) {
throw new MalformedObjectNameException
("Cannot create object name for " + connector+e);
}
} else {
throw new MalformedObjectNameException
("Cannot create object name for " + connector);
}
}