eu.europa.esig.dss.utils.Utils.isStringNotBlank()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(112)

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

Utils.isStringNotBlank介绍

暂无

代码示例

代码示例来源:origin: esig/dss

@Override
protected boolean process() {
  return Utils.isStringNotBlank(zipComment);
}

代码示例来源:origin: esig/dss

/**
 * This methods allows to indicate if the resource must be obtained. If this method has been invoked then only the
 * provided URL will be processed.
 *
 * @param url
 *            to be processed
 */
public void addToBeLoaded(final String url) {
  if (toBeLoaded == null) {
    toBeLoaded = new ArrayList<String>();
  }
  if (Utils.isStringNotBlank(url)) {
    toBeLoaded.add(url);
  }
}

代码示例来源:origin: esig/dss

@Override
protected boolean process() {
  return Utils.isStringNotBlank(certificate.getSerialNumber());
}

代码示例来源:origin: esig/dss

/**
 * This methods allows to indicate which resources must be ignored. It is useful in a test environment where some of
 * fake sources a not available. It prevents to wait for the
 * timeout.
 *
 * @param urlString
 *            to be ignored. It can be the original URL or the cache file name
 */
public void addToBeIgnored(final String urlString) {
  if (toIgnored == null) {
    toIgnored = new ArrayList<String>();
  }
  if (Utils.isStringNotBlank(urlString)) {
    final String normalizedFileName = ResourceLoader.getNormalizedFileName(urlString);
    toIgnored.add(normalizedFileName);
  }
}

代码示例来源:origin: esig/dss

public List<String> getCpsUrls() {
  List<String> result = new ArrayList<String>();
  List<XmlCertificatePolicy> certificatePolicyIds = certificate.getCertificatePolicies();
  if (Utils.isCollectionNotEmpty(certificatePolicyIds)) {
    for (XmlCertificatePolicy xmlCertificatePolicy : certificatePolicyIds) {
      if (Utils.isStringNotBlank(xmlCertificatePolicy.getCpsUrl())) {
        result.add(xmlCertificatePolicy.getCpsUrl());
      }
    }
  }
  return result;
}

代码示例来源:origin: esig/dss

@Test
public void isStringNotBlank() {
  assertFalse(Utils.isStringNotBlank(""));
  assertFalse(Utils.isStringNotBlank("  "));
  assertFalse(Utils.isStringNotBlank(null));
  assertTrue(Utils.isStringNotBlank("bla"));
}

代码示例来源:origin: esig/dss

@Override
protected String getAdditionalInfo() {
  if (Utils.isStringNotBlank(digestMatcher.getName())) {
    return "Reference : " + digestMatcher.getName();
  } else {
    return digestMatcher.getType().name();
  }
}

代码示例来源:origin: esig/dss

@Override
protected String getAdditionalInfo() {
  if (Utils.isStringNotBlank(digestMatcher.getName())) {
    return "Reference : " + digestMatcher.getName();
  } else {
    return digestMatcher.getType().name();
  }
}

代码示例来源:origin: esig/dss

private void collect(MessageType type, Set<String> result, XmlConstraintsConclusion constraintConclusion) {
  if (constraintConclusion != null && Utils.isCollectionNotEmpty(constraintConclusion.getConstraint())) {
    for (XmlConstraint constraint : constraintConclusion.getConstraint()) {
      XmlName message = getMessage(type, constraint);
      if (message != null) {
        result.add(message.getValue());
      }
      if (Utils.isStringNotBlank(constraint.getId())) {
        collect(type, result, getBasicBuildingBlockById(constraint.getId()));
      }
    }
  }
}

代码示例来源:origin: esig/dss

private void checkReports(Reports reports) {
  // reports.print();
  assertNotNull(reports);
  assertNotNull(reports.getDiagnosticData());
  assertNotNull(reports.getDiagnosticDataJaxb());
  assertNotNull(reports.getSimpleReport());
  assertNotNull(reports.getSimpleReportJaxb());
  assertNotNull(reports.getDetailedReport());
  assertNotNull(reports.getDetailedReportJaxb());
  assertTrue(Utils.isStringNotBlank(reports.getXmlDiagnosticData()));
  assertTrue(Utils.isStringNotBlank(reports.getXmlSimpleReport()));
  assertTrue(Utils.isStringNotBlank(reports.getXmlDetailedReport()));
}

代码示例来源:origin: esig/dss

item.setSubject(getSubject(certificate));
String signingCertificateId = certificate.getSigningCertificateId();
if (Utils.isStringNotBlank(signingCertificateId)) {
  item.setIssuerId(signingCertificateId);

相关文章