if (isLoggable)
log.fine(dbgId() + "web-app '" + appEntry.getContextPath() + "'");
crc64 = Crc64.generate(crc64, appEntry.getContextPath());
WebApp app = appEntry.getWebApp();
if (appEntry.isDynamicDeploy()) {
writeString(os, HMUX_MATCH, "/*");
crc64 = Crc64.generate(crc64, "/*");
if (isLoggable)
log.fine(dbgId() + "dynamic '" + appEntry.getContextPath() + "'");
}
else if (app == null || ! app.isActive()) {
if (isLoggable)
log.fine(dbgId() + "not active '" + appEntry.getContextPath() + "'");
writeString(os, HMUX_WEB_APP_UNAVAILABLE, "");
}
else {
if (isLoggable)
log.fine(dbgId() + "active '" + appEntry.getContextPath() + "'");
ArrayList<String> patternList = app.getServletMappingPatterns();
for (int j = 0; patternList != null && j < patternList.size(); j++) {
String pattern = patternList.get(j);
writeString(os, HMUX_MATCH, pattern);
crc64 = Crc64.generate(crc64, pattern);
}
patternList = app.getServletIgnoreMappingPatterns();
for (int j = 0; patternList != null && j < patternList.size(); j++) {
String pattern = patternList.get(j);
writeString(os, HMUX_IGNORE, pattern);