本文整理匯總了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;
}