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

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

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

origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder setRef(String ref) {
  this.ref = StringUtils.urlEncode(ref);
  return this;
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder setUserInfo(String userInfo) {
  this.userInfo = StringUtils.urlEncode(userInfo);
  return this;
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder setRef(String ref) {
  this.ref = StringUtils.urlEncode(ref);
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder setUserInfo(String userInfo) {
  this.userInfo = StringUtils.urlEncode(userInfo);
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder param(String key, String value) {
  param(StringUtils.urlEncode(key), StringUtils.urlEncode(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder param(String key, String value) {
  param(StringUtils.urlEncode(key), StringUtils.urlEncode(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder param(String key, String value, boolean encoded) {
  parameters.add(new Param(encoded ? key : StringUtils.urlEncode(key), encoded ? value : StringUtils.urlEncode(value)));
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder param(String key, String value, boolean encoded) {
  parameters.add(new Param(encoded ? key : StringUtils.urlEncode(key), encoded ? value : StringUtils.urlEncode(value)));
  return this;
}
origin: com.kloudtek.idvkey.sdk/idvkey-sdk-java

/**
 * Confirm that user Authentication was done successfully
 *
 * @param opId Operation id returned by {@link #authenticateUser(String, URL, URL)}
 * @return Authenticated user ref
 * @throws IOException If error occurred performing the operation
 */
public String confirmUserAuthentication(@NotNull String opId) throws IOException {
  return get("api/idvkey/authenticate?opId=" + urlEncode(opId));
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder param(String key, long value) {
  param(StringUtils.urlEncode(key), Long.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder param(String key, byte value) {
  param(StringUtils.urlEncode(key), Byte.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder param(String key, long value) {
  param(StringUtils.urlEncode(key), Long.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder param(String key, int value) {
  param(StringUtils.urlEncode(key), Integer.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder param(String key, byte value) {
  param(StringUtils.urlEncode(key), Byte.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public URLBuilder param(String key, boolean value) {
  param(StringUtils.urlEncode(key), Boolean.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder param(String key, int value) {
  param(StringUtils.urlEncode(key), Integer.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils

public URLBuilder param(String key, boolean value) {
  param(StringUtils.urlEncode(key), Boolean.toString(value), true);
  return this;
}
origin: com.kloudtek.ktutils/ktutils-core

public static String urlPathEncode( String path ) {
  StringBuilder buffer = new StringBuilder();
  for (char c : path.toCharArray()) {
    if (UNSAFE_URLPATH.indexOf(c) >= 0) {
      buffer.append('%');
      buffer.append(toHex(c / 16));
      buffer.append(toHex(c % 16));
    } else if( c < 32 && c > 128 ) {
      buffer.append(urlEncode(Character.toString(c)));
    } else {
      buffer.append(c);
    }
  }
  return buffer.toString();
}
origin: com.kloudtek.ktutils/ktutils

public static String urlPathEncode(String path) {
  StringBuilder buffer = new StringBuilder();
  for (char c : path.toCharArray()) {
    if (UNSAFE_URLPATH.indexOf(c) >= 0) {
      buffer.append('%');
      buffer.append(toHex(c / 16));
      buffer.append(toHex(c % 16));
    } else if (c < 32 && c > 128) {
      buffer.append(urlEncode(Character.toString(c)));
    } else {
      buffer.append(c);
    }
  }
  return buffer.toString();
}
origin: com.kloudtek.idvkey.sdk/idvkey-sdk-java

/**
 * Check what is the approval state of an operation
 *
 * @param opId Operation Id
 * @return approval state
 * @throws IOException If an error occurs while performing the operation
 */
public ApprovalState getApprovalState(@NotNull String opId) throws IOException {
  final String state = get("api/idvkey/approve?opId=" + urlEncode(opId));
  try {
    return ApprovalState.valueOf(state);
  } catch (IllegalArgumentException e) {
    throw new IOException("Invalid approval state: " + state);
  }
}
com.kloudtek.utilStringUtilsurlEncode

Javadoc

URL encode a string using UTF-8

Popular methods of StringUtils

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

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Collectors (java.util.stream)
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top PhpStorm plugins
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