Tabnine Logo
StringUtils.isBlank
Code IndexAdd Tabnine to your IDE (free)

How to use
isBlank
method
in
com.kloudtek.util.StringUtils

Best Java code snippets using com.kloudtek.util.StringUtils.isBlank (Showing top 7 results out of 315)

origin: com.kloudtek.ktutils/ktutils

public static boolean isNotBlank(String txt) {
  return !isBlank(txt);
}
origin: com.kloudtek.ktutils/ktutils-core

public static boolean isNotBlank(String txt) {
  return !isBlank(txt);
}
origin: com.kloudtek.anypoint-tools/anypoint-lib

public String authenticate(String username, String password) throws HttpException {
  if(StringUtils.isBlank(username) ) {
    throw new IllegalArgumentException("Username missing");
  }
  if(StringUtils.isBlank(password) ) {
    throw new IllegalArgumentException("Username missing");
  }
  Map<String, String> request = new HashMap<>();
  request.put("username", username);
  request.put("password", password);
  Map data = jsonHelper.toJsonMap(httpHelper.httpPost(LOGIN_PATH, request));
  return data.get("token_type") + " " + data.get("access_token");
}
origin: com.kloudtek.anypoint-tools/anypoint-lib

public API findAPIByExchangeAsset(@NotNull String groupId, @NotNull String assetId, @NotNull String assetVersion, @Nullable String label) throws HttpException, NotFoundException {
  if (isBlank(groupId)) {
    throw new IllegalArgumentException("groupId missing (null or blank)");
  }
  if (isBlank(assetId)) {
    throw new IllegalArgumentException("assetId missing (null or blank)");
  }
  if (isBlank(assetVersion)) {
    throw new IllegalArgumentException("assetVersion missing (null or blank)");
  }
  for (APIAsset asset : findAllAPIs()) {
    if (asset.getGroupId().equalsIgnoreCase(groupId) && asset.getAssetId().equalsIgnoreCase(assetId)) {
      for (API api : asset.getApis()) {
        if (api.getAssetVersion().equalsIgnoreCase(assetVersion) && (label == null || label.equalsIgnoreCase(api.getInstanceLabel()))) {
          return api;
        }
      }
    }
  }
  throw new NotFoundException("API based on exchange asset not found: groupId=" + groupId + ", assetId=" + assetId + ", assetVersion=" + assetVersion + ", label=" + label);
}
origin: com.kloudtek.anypoint-tools/anypoint-lib

public CHDeploymentRequest(String muleVersionName, String regionName, String workerTypeName, int workerCount,
              Environment environment, String appName, ApplicationSource file, String filename,
              Map<String, String> properties, APIProvisioningConfig apiProvisioningConfig) throws HttpException, NotFoundException {
  super(environment, appName, file, filename, properties, apiProvisioningConfig);
  this.workerCount = workerCount;
  if (isBlank(muleVersionName)) {
    muleVersion = environment.findDefaultCHMuleVersion();
  } else {
    muleVersion = environment.findCHMuleVersion(muleVersionName);
  }
  if (isBlank(regionName)) {
    region = environment.findDefaultCHRegion().getId();
  } else {
    region = regionName;
  }
  if (isBlank(workerTypeName)) {
    workerType = environment.findSmallestWorkerType();
  } else {
    workerType = environment.findWorkerTypeByName(workerTypeName);
  }
}
origin: com.kloudtek.idvkey.sdk/idvkey-sdk-java

/**
 * Request for a user to approve an operation using IDVKey
 *
 * @param serviceId       serviceId
 * @param userRef         User ref
 * @param redirectUrl     URL to redirect browser once the operation has been handled by the user (or if it expired).
 * @param cancelUrl       URL to redirect browser if the user wants to cancel the operation.
 * @param approvalRequest Approval request details  @return Operation results
 * @throws IOException If an error occurs while performing the operation
 * @return operation result
 */
@SuppressWarnings("ConstantConditions")
public OperationResult requestApproval(@NotNull String serviceId, @NotNull String userRef, @NotNull URL redirectUrl,
                    @NotNull URL cancelUrl, @NotNull ApprovalRequest approvalRequest) throws IOException {
  if (approvalRequest == null) {
    throw new IllegalArgumentException("approval request missing");
  } else if (StringUtils.isBlank(approvalRequest.getTitle())) {
    throw new IllegalArgumentException("approval title missing");
  } else if (StringUtils.isBlank(approvalRequest.getText())) {
    throw new IllegalArgumentException("approval text missing");
  }
  final String json = postJson(new URLBuilder("api/idvkey/approve").add("serviceId", serviceId)
      .add("redirectUrl", redirectUrl.toString()).add("cancelUrl", cancelUrl.toString()).add("userRef", userRef).toString(), approvalRequest);
  return jsonMapper.readValue(json, OperationResult.class);
}
origin: com.kloudtek.genesis/genesis-lib

if (response == null) {
  throw new TemplateExecutionException("Template processing cancelled by user");
} else if (!blankAllowed && StringUtils.isBlank(response)) {
  val = null;
} else {
com.kloudtek.utilStringUtilsisBlank

Popular methods of StringUtils

  • base64Decode
  • utf8
    Convert UTF-8 encoded byte arrays to a string
  • base64Encode
  • isEmpty
  • isNotBlank
  • urlEncode
    URL encode a string using UTF-8
  • base32Decode
  • base32Encode
  • isNotEmpty
  • substituteVariables
    Substitute variables in a string.
  • toHex
  • urlPathEncode
  • toHex,
  • urlPathEncode,
  • capitalize,
  • containsVariableSubstitution,
  • getVarSubFuncPattern,
  • nextChar,
  • resolveVarSub,
  • resolveVarSubFail,
  • splitTwoArgFunction

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • getSystemService (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JComboBox (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now