Java Code Examples for org.springframework.util.StringUtils#delete()

The following examples show how to use org.springframework.util.StringUtils#delete() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 2
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 3
Source Project: spring-analysis-note   File: SockJsUrlInfo.java    License: MIT License 4 votes vote down vote up
public String getSessionId() {
	if (this.sessionId == null) {
		this.sessionId = StringUtils.delete(getUuid().toString(), "-");
	}
	return this.sessionId;
}
 
Example 4
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 5
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 6
Source Project: java-technology-stack   File: SockJsUrlInfo.java    License: MIT License 4 votes vote down vote up
public String getSessionId() {
	if (this.sessionId == null) {
		this.sessionId = StringUtils.delete(getUuid().toString(), "-");
	}
	return this.sessionId;
}
 
Example 7
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 8
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 9
public static String getBeanName(String serviceClassName) {
	String clientClassName = ClassUtils.getShortName(serviceClassName);
	String shortenedClassName = StringUtils.delete(clientClassName,
			SERVICE_IMPLEMENTATION_SUFFIX);
	return Introspector.decapitalize(shortenedClassName);
}
 
Example 10
/**
 * <pre>
 * 去除JPQL语句内的fetch部分
 *
 * <strong>程序范例:</strong>
 * queryString = removeFetch(queryString);
 *
 * </pre>
 * @param queryString  查询语句
 * @return  查询语句
 */
public static String removeFetch(String queryString) {
    Assert.notNull(queryString);
    return StringUtils.delete(queryString, " fetch");
}