@Override public int getEffectiveMajorVersion() { return webXml.getMajorVersion(); }
@Override public int getEffectiveMajorVersion() { return webXml.getMajorVersion(); }
@Override public int getMajorVersion() { return SystemInstance.get().getOptions().get(prefix + "." + OPENEJB_WEB_XML_MAJOR_VERSION_PROPERTY, SystemInstance.get().getOptions().get(OPENEJB_WEB_XML_MAJOR_VERSION_PROPERTY, super.getMajorVersion())); }
if (getMajorVersion() > 2 || getMinorVersion() > 2) { for (Map.Entry<String, FilterDef> entry : filters.entrySet()) { FilterDef filterDef = entry.getValue(); if (getMajorVersion() != 2) { appendElement(sb, INDENT4, "async-supported", filterDef.getAsyncSupported()); if (getMajorVersion() > 2 || getMinorVersion() > 3) { for (String dispatcher : filterMap.getDispatcherNames()) { if (getMajorVersion() == 2 && DispatcherType.ASYNC.name().equals(dispatcher)) { continue; if (getMajorVersion() > 2 || getMinorVersion() > 2) { for (String listener : listeners) { sb.append(" <listener>\n"); if (getMajorVersion() != 2) { appendElement(sb, INDENT4, "async-supported", servletDef.getAsyncSupported()); if (getMajorVersion() > 2 || getMinorVersion() > 2) { if (servletDef.getRunAs() != null) { sb.append(" <run-as>\n"); if (getMajorVersion() != 2) { MultipartDef multipartDef = servletDef.getMultipartDef(); if (multipartDef != null) {
if (getMajorVersion() > 2 || getMinorVersion() > 2) { for (Map.Entry<String, FilterDef> entry : filters.entrySet()) { FilterDef filterDef = entry.getValue(); if (getMajorVersion() != 2) { appendElement(sb, INDENT4, "async-supported", filterDef.getAsyncSupported()); if (getMajorVersion() > 2 || getMinorVersion() > 3) { for (String dispatcher : filterMap.getDispatcherNames()) { if (getMajorVersion() == 2 && DispatcherType.ASYNC.name().equals(dispatcher)) { continue; if (getMajorVersion() > 2 || getMinorVersion() > 2) { for (String listener : listeners) { sb.append(" <listener>\n"); if (getMajorVersion() != 2) { appendElement(sb, INDENT4, "async-supported", servletDef.getAsyncSupported()); if (getMajorVersion() > 2 || getMinorVersion() > 2) { if (servletDef.getRunAs() != null) { sb.append(" <run-as>\n"); if (getMajorVersion() != 2) { MultipartDef multipartDef = servletDef.getMultipartDef(); if (multipartDef != null) {
context.setEffectiveMajorVersion(webxml.getMajorVersion()); context.setEffectiveMinorVersion(webxml.getMinorVersion());
context.setEffectiveMajorVersion(webxml.getMajorVersion()); context.setEffectiveMinorVersion(webxml.getMinorVersion());
context.setEffectiveMajorVersion(webxml.getMajorVersion()); context.setEffectiveMinorVersion(webxml.getMinorVersion());