org.apache.xml.resolver.helpers.Debug.setDebug()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(245)

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

Debug.setDebug介绍

[英]Set the debug level for future messages.
[中]为将来的消息设置调试级别。

代码示例

代码示例来源:origin: xml-resolver/xml-resolver

/**
 * Set the current verbosity.
 */
public void setVerbosity (int verbosity) {
 this.verbosity = new Integer(verbosity);
 debug.setDebug(verbosity);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver

/**
 * Set the current verbosity.
 */
public void setVerbosity (int verbosity) {
 this.verbosity = new Integer(verbosity);
 debug.setDebug(verbosity);
}

代码示例来源:origin: org.apache.xml/com.springsource.org.apache.xml.resolver

/**
 * Set the current verbosity.
 */
public void setVerbosity (int verbosity) {
 this.verbosity = new Integer(verbosity);
 debug.setDebug(verbosity);
}

代码示例来源:origin: org.apache.axis2/axis2-metadata

/**
 * Constructor that specifies an explicit property file.
 * @param propertyFileName
 */
public OASISCatalogManager(String propertyFileName) {
  super(propertyFileName);
  if (DEBUG_LEVEL != null) {
    this.debug.setDebug(Integer.parseInt(DEBUG_LEVEL));            
  }
}

代码示例来源:origin: apache/axis2-java

/**
 * Constructor that specifies an explicit property file.
 * @param propertyFileName
 */
public OASISCatalogManager(String propertyFileName) {
  super(propertyFileName);
  if (DEBUG_LEVEL != null) {
    this.debug.setDebug(Integer.parseInt(DEBUG_LEVEL));            
  }
}

代码示例来源:origin: org.apache.axis2/axis2-metadata

/**
 * Default constructor with no arguments.
 * This constructor will use the defaults specified for Axis2 in the
 * acceptDefaults method.
 */
public OASISCatalogManager() {
  super();
  this.acceptDefaults();
  if (DEBUG_LEVEL != null) {
    this.debug.setDebug(Integer.parseInt(DEBUG_LEVEL)); 
  }
  setDeterminedCatalogFiles();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver

String verbStr = resources.getString("verbosity");
int verb = Integer.parseInt(verbStr.trim());
debug.setDebug(verb);
verbosity = new Integer(verb);
 } catch (Exception e) {

代码示例来源:origin: apache/axis2-java

/**
 * Default constructor with no arguments.
 * This constructor will use the defaults specified for Axis2 in the
 * acceptDefaults method.
 */
public OASISCatalogManager() {
  super();
  this.acceptDefaults();
  if (DEBUG_LEVEL != null) {
    this.debug.setDebug(Integer.parseInt(DEBUG_LEVEL)); 
  }
  setDeterminedCatalogFiles();
}

代码示例来源:origin: xml-resolver/xml-resolver

String verbStr = resources.getString("verbosity");
int verb = Integer.parseInt(verbStr.trim());
debug.setDebug(verb);
verbosity = new Integer(verb);
 } catch (Exception e) {

代码示例来源:origin: xml-resolver/xml-resolver

debug.setDebug(verb);
verbosity = new Integer(verb);

代码示例来源:origin: org.apache.xml/com.springsource.org.apache.xml.resolver

String verbStr = resources.getString("verbosity");
int verb = Integer.parseInt(verbStr.trim());
debug.setDebug(verb);
verbosity = new Integer(verb);
 } catch (Exception e) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver

debug.setDebug(verb);
verbosity = new Integer(verb);

代码示例来源:origin: org.apache.xml/com.springsource.org.apache.xml.resolver

debug.setDebug(verb);
verbosity = new Integer(verb);

代码示例来源:origin: org.apache.axis2/axis2-metadata

/**
 * Default constructor with ClassLoader argument.
 * This constructor will use the defaults specified for Axis2 in the
 * acceptDefaults method.
 * @param classLoader
 */
public OASISCatalogManager(ClassLoader classLoader) {
  super();
  this.acceptDefaults();
  if (DEBUG_LEVEL != null) {
    this.debug.setDebug(Integer.parseInt(DEBUG_LEVEL)); 
  }
  // need to set classloader before calling determineFileName
  this.classloader = classLoader;
  this.setDeterminedCatalogFiles();
}

代码示例来源:origin: apache/axis2-java

/**
 * Default constructor with ClassLoader argument.
 * This constructor will use the defaults specified for Axis2 in the
 * acceptDefaults method.
 * @param classLoader
 */
public OASISCatalogManager(ClassLoader classLoader) {
  super();
  this.acceptDefaults();
  if (DEBUG_LEVEL != null) {
    this.debug.setDebug(Integer.parseInt(DEBUG_LEVEL)); 
  }
  // need to set classloader before calling determineFileName
  this.classloader = classLoader;
  this.setDeterminedCatalogFiles();
}

代码示例来源:origin: apache/cxf

private static EntityResolver getResolver() {
  try {
    CatalogManager catalogManager = new CatalogManager();
    if (DEBUG_LEVEL != null) {
      catalogManager.debug.setDebug(Integer.parseInt(DEBUG_LEVEL));
    }
    catalogManager.setUseStaticCatalog(false);
    catalogManager.setIgnoreMissingProperties(true);
    return new CatalogResolver(catalogManager) {
      public String getResolvedEntity(String publicId, String systemId) {
        String s = super.getResolvedEntity(publicId, systemId);
        if (s != null && s.startsWith("classpath:")) {
          try {
            URIResolver r = new URIResolver(s);
            if (r.isResolved()) {
              r.getInputStream().close();
              return r.getURL().toExternalForm();
            }
          } catch (IOException e) {
            //ignore
          }
        }
        return s;
      }
    };
  } catch (Throwable t) {
    //ignore
  }
  return null;
}

代码示例来源:origin: org.apache.cxf/cxf-core

private static EntityResolver getResolver() {
  try {
    CatalogManager catalogManager = new CatalogManager();
    if (DEBUG_LEVEL != null) {
      catalogManager.debug.setDebug(Integer.parseInt(DEBUG_LEVEL));
    }
    catalogManager.setUseStaticCatalog(false);
    catalogManager.setIgnoreMissingProperties(true);
    return new CatalogResolver(catalogManager) {
      public String getResolvedEntity(String publicId, String systemId) {
        String s = super.getResolvedEntity(publicId, systemId);
        if (s != null && s.startsWith("classpath:")) {
          try {
            URIResolver r = new URIResolver(s);
            if (r.isResolved()) {
              r.getInputStream().close();
              return r.getURL().toExternalForm();
            }
          } catch (IOException e) {
            //ignore
          }
        }
        return s;
      }
    };
  } catch (Throwable t) {
    //ignore
  }
  return null;
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

CatalogManager catalogManager = new CatalogManager();
if (DEBUG_LEVEL != null) {
  catalogManager.debug.setDebug(Integer.parseInt(DEBUG_LEVEL));

代码示例来源:origin: org.apache.cxf/cxf-rt-core

CatalogManager catalogManager = new CatalogManager();
if (DEBUG_LEVEL != null) {
  catalogManager.debug.setDebug(Integer.parseInt(DEBUG_LEVEL));

代码示例来源:origin: xml-resolver/xml-resolver

debuglevel = Integer.parseInt(debugstr);
if (debuglevel >= 0) {
 debug.setDebug(debuglevel);
 showWarnings = (debuglevel > 2);

相关文章