org.apache.tomcat.util.descriptor.web.WebXml.getVersion()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中org.apache.tomcat.util.descriptor.web.WebXml.getVersion()方法的一些代码示例,展示了WebXml.getVersion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebXml.getVersion()方法的具体详情如下:
包路径:org.apache.tomcat.util.descriptor.web.WebXml
类名称:WebXml
方法名:getVersion

WebXml.getVersion介绍

暂无

代码示例

代码示例来源:origin: codefollower/Tomcat-Research

  1. @Override
  2. public void begin(String namespace, String name, Attributes attributes)
  3. throws Exception {
  4. WebXml webxml = (WebXml) digester.peek(digester.getCount() - 1);
  5. webxml.setVersion(attributes.getValue("version"));
  6. if (digester.getLogger().isDebugEnabled()) {
  7. digester.getLogger().debug
  8. (webxml.getClass().getName() + ".setVersion( " +
  9. webxml.getVersion() + ")");
  10. }
  11. }

代码示例来源:origin: org.apache.tomcat/tomcat-util-scan

  1. @Override
  2. public void begin(String namespace, String name, Attributes attributes)
  3. throws Exception {
  4. WebXml webxml = (WebXml) digester.peek(digester.getCount() - 1);
  5. webxml.setVersion(attributes.getValue("version"));
  6. if (digester.getLogger().isDebugEnabled()) {
  7. digester.getLogger().debug
  8. (webxml.getClass().getName() + ".setVersion( " +
  9. webxml.getVersion() + ")");
  10. }
  11. }

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

  1. @Override
  2. public void begin(String namespace, String name, Attributes attributes)
  3. throws Exception {
  4. WebXml webxml = (WebXml) digester.peek(digester.getCount() - 1);
  5. webxml.setVersion(attributes.getValue("version"));
  6. if (digester.getLogger().isDebugEnabled()) {
  7. digester.getLogger().debug
  8. (webxml.getClass().getName() + ".setVersion( " +
  9. webxml.getVersion() + ")");
  10. }
  11. }

代码示例来源:origin: codefollower/Tomcat-Research

  1. " http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd\"\n");
  2. sb.append(" version=\"");
  3. sb.append(getVersion());
  4. sb.append("\"\n");
  5. sb.append(" metadata-complete=\"true\">\n\n");

代码示例来源:origin: org.apache.tomcat/tomcat-util-scan

  1. String javaeeNamespace = null;
  2. String webXmlSchemaLocation = null;
  3. String version = getVersion();
  4. if ("2.4".equals(version)) {
  5. javaeeNamespace = XmlIdentifiers.JAVAEE_1_4_NS;
  6. sb.append("\"\n");
  7. sb.append(" version=\"");
  8. sb.append(getVersion());
  9. sb.append("\"");
  10. if ("2.4".equals(version)) {

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

  1. String javaeeNamespace = null;
  2. String webXmlSchemaLocation = null;
  3. String version = getVersion();
  4. if ("2.4".equals(version)) {
  5. javaeeNamespace = XmlIdentifiers.JAVAEE_1_4_NS;
  6. sb.append("\"\n");
  7. sb.append(" version=\"");
  8. sb.append(getVersion());
  9. sb.append("\"");
  10. if ("2.4".equals(version)) {

相关文章

WebXml类方法