本文整理汇总了Java中org.eclipse.jetty.util.StringUtil.isNotBlank方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtil.isNotBlank方法的具体用法?Java StringUtil.isNotBlank怎么用?Java StringUtil.isNotBlank使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jetty.util.StringUtil
的用法示例。
在下文中一共展示了StringUtil.isNotBlank方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExtraTestsClasses
import org.eclipse.jetty.util.StringUtil; //导入方法依赖的package包/类
@Override
public List<String> getExtraTestsClasses() {
String extraTests = config.getString("e2e.extraTests");
if (StringUtil.isNotBlank(extraTests)) {
return Arrays.asList(extraTests.split(EXTRA_TESTS_CLASSES_NAMES_DELIMETER));
} else {
return Collections.emptyList();
}
}
示例2: parseGetCustomerByClientIdResponse
import org.eclipse.jetty.util.StringUtil; //导入方法依赖的package包/类
private Client parseGetCustomerByClientIdResponse(ResponseWrapper response) {
String clientId = response.getStringAttribute(GetClientByPersonalId.CUSTOMER_CLIENT_ID);
String lastName = response.getStringAttribute(GetClientByPersonalId.CUSTOMER_LAST_NAME);
String customerId = response.getStringAttribute(GetClientByPersonalId.CUSTOMER_ID);
boolean hasEmail = StringUtil.isNotBlank(response.getStringAttribute(GetClientByPersonalId.CUSTOMER_EMAIL));
boolean hasMobile = StringUtil.isNotBlank(response.getStringAttribute(GetClientByPersonalId.CUSTOMER_TELEPHONE1));
boolean isActive = "true".equals(response.getStringAttribute(GetClientByPersonalId.CUSTOMER_ACTIVE));
ResponseWrapper customPropertiesResponse = getCustomPropertiesResponse(customerId);
ServiceDetails serviceDetails = getServiceDetails(customPropertiesResponse, customerId);
String appointmentTypeId = getAppointmentTypeId(customPropertiesResponse, customerId);
checkUserConfiguredCorrectly(serviceDetails, appointmentTypeId);
return new Client(clientId, lastName, customerId, hasEmail, hasMobile, serviceDetails.getUnitId(), serviceDetails.getServiceId(), appointmentTypeId, isActive);
}
示例3: fillValue
import org.eclipse.jetty.util.StringUtil; //导入方法依赖的package包/类
/**
* 填入值,如果目标元素有readonly,则不做任何操作
* @param ele 目标元素
* @param value 要填入的值,null会当作空字符串
* @param append 是否追加
*/
private void fillValue(Element ele, Object value, boolean append)
{
if(value == null)
{
value = "";
}
WebElement webEle = searchStrategyUtils.findStrategy(WebElement.class, ele).search(ele);
if(webEle != null)
{
String readonlyAttr = webEle.getAttribute("readonly");
if(StringUtil.isNotBlank(readonlyAttr))
{
logger.warn("{} is readonly, will do not call method setValue.", webEle.toString());
return;
}
String valueStr = value.toString();
try
{
fill(webEle, valueStr, append);
}
catch(WebDriverException e)
{
if(e.getMessage().contains("is not clickable at point"))
{
((JavascriptExecutor) engine.getDriver()).executeScript("arguments[0].scrollIntoView();", webEle);
fill(webEle, valueStr, append);
}
else
{
e.printStackTrace();
}
}
}
else
{
logger.error(String.format("can not found element [%s].", ele));
}
}