本文整理汇总了Java中com.huawei.esdk.platform.common.utils.StringUtils.isNotEmpty方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtils.isNotEmpty方法的具体用法?Java StringUtils.isNotEmpty怎么用?Java StringUtils.isNotEmpty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.huawei.esdk.platform.common.utils.StringUtils
的用法示例。
在下文中一共展示了StringUtils.isNotEmpty方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: appSendMsgToDeptRest2Modal
import com.huawei.esdk.platform.common.utils.StringUtils; //导入方法依赖的package包/类
public DeptInstanceMessage appSendMsgToDeptRest2Modal(AppSendMsgToDept msg) throws SDKException
{
DeptInstanceMessage im = new DeptInstanceMessage();
im.setSender(msg.getSendNumber());
im.setDeptNo(msg.getDeptId());
im.setContent(msg.getMessage());
im.setSubject(msg.getSubject());
im.setDeptGrade(msg.getDeptGrade());
if(StringUtils.isNotEmpty(msg.getPriorityLevel()))
{
try
{
im.setPriorityLevel(Integer.parseInt(msg.getPriorityLevel()));
}
catch(NumberFormatException e)
{
SDKException sdkException = new SDKException(ErrInfo.SDK_UC_PARAM_NOT_CORRECT_ERRORCODESC);
sdkException.setSdkErrCode(ErrInfo.SDK_UC_PARAM_NOT_CORRECT_ERRORCODE);
throw sdkException;
}
}
return im;
}
示例2: getProductFromDevType
import com.huawei.esdk.platform.common.utils.StringUtils; //导入方法依赖的package包/类
private String getProductFromDevType()
{
LOGGER.debug("deviceType=" + deviceType);
String product = (String) ThreadLocalHolder.get().getEntities().get(ESDKConstant.CURRENT_PRODUCT);
if (StringUtils.isNotEmpty(product))
{
LOGGER.debug("product from thread local is " + product);
return product;
}
String className = DeviceConfigLoader.getDeviceProxyConfig(deviceType).getClassName();
for (Map.Entry<String, String> entry : productAuthPolicyMappings.entrySet())
{
if (className.contains(entry.getKey()))
{
return entry.getValue();
}
}
LOGGER.warn("The derived product is empty");
return "";
}
示例3: reqMsgMatchesBuiness
import com.huawei.esdk.platform.common.utils.StringUtils; //导入方法依赖的package包/类
@Override
public boolean reqMsgMatchesBuiness(String funcName, Object message)
{
if (StringUtils.isNotEmpty(funcName) && funcName.contains("rest/ec"))
{
return true;
}
else
{
return false;
}
}
示例4: init
import com.huawei.esdk.platform.common.utils.StringUtils; //导入方法依赖的package包/类
public void init()
{
logServerURL = ConfigManager.getInstance().getValue("log.server.url");
if (StringUtils.isNotEmpty(logServerURL))
{
es.execute(new LogFileUploaderTask());
LOGGER.info("The Log uploader thread started");
}
}
示例5: do16BitMD5
import com.huawei.esdk.platform.common.utils.StringUtils; //导入方法依赖的package包/类
public static String do16BitMD5(String plainStr)
{
String result = do32BitMD5(plainStr);
if (StringUtils.isNotEmpty(result) && result.length() >= 24)
{
result = result.substring(8, 24);
}
return result;
}
示例6: getQuerySnapshotParamModel2South
import com.huawei.esdk.platform.common.utils.StringUtils; //导入方法依赖的package包/类
public QuerySnapshotParamSouth getQuerySnapshotParamModel2South(QuerySnapshotParam param)
{
if (null == param)
{
return null;
}
QuerySnapshotParamSouth paramSouth = new QuerySnapshotParamSouth();
paramSouth.snapType = param.getSnapType();
if (StringUtils.isNotEmpty(param.getReserve()))
paramSouth.reserve = BytesUtils.stringToBytesForIVS(param.getReserve());
if (null != param.getIndexRange())
{
paramSouth.indexRange = new IndexRangeSouth();
paramSouth.indexRange.fromIndex = param.getIndexRange().getFromIndex();
paramSouth.indexRange.toIndex = param.getIndexRange().getToIndex();
}
if (null != param.getTimeSpan())
{
paramSouth.timeSpan = new TimeSpanSouth();
paramSouth.timeSpan.start = BytesUtils.stringToBytesForIVS(param.getTimeSpan().getStartTime());
paramSouth.timeSpan.end = BytesUtils.stringToBytesForIVS(param.getTimeSpan().getEndTime());
}
return paramSouth;
}
示例7: reqMsgMatchesBuiness
import com.huawei.esdk.platform.common.utils.StringUtils; //导入方法依赖的package包/类
@Override
public boolean reqMsgMatchesBuiness(String funcName, Object message)
{
if (StringUtils.isNotEmpty(funcName) && funcName.contains("esdk_ivs_professional_server"))
{
return true;
}
return false;
}