MCPcopy Index your code
hub / github.com/dianping/cat / getCustomDomain

Method getCustomDomain

lib/java/src/main/java/com/dianping/cat/Cat.java:175–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 }
174
175 private static String getCustomDomain() {
176 String config = System.getProperty(Cat.CLIENT_CONFIG);
177
178 if (StringUtils.isNotEmpty(config)) {
179 try {
180 ClientConfig clientConfig = DefaultSaxParser.parse(config);
181
182 return clientConfig.getDomain();
183 } catch (Exception e) {
184 // ignore
185 }
186 }
187 return null;
188 }
189
190 public static Cat getInstance() {
191 return instance;

Callers 1

validateMethod · 0.95

Calls 4

isNotEmptyMethod · 0.95
parseMethod · 0.95
getPropertyMethod · 0.65
getDomainMethod · 0.65

Tested by

no test coverage detected