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

The following examples show how to use org.springframework.util.StringUtils#delete() . 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
Source File: AbstractFileNameVersionStrategy.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 2
Source File: AbstractVersionStrategy.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 3
Source File: SockJsUrlInfo.java    From spring-analysis-note with 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
Source File: AbstractFileNameVersionStrategy.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 5
Source File: AbstractVersionStrategy.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 6
Source File: SockJsUrlInfo.java    From java-technology-stack with 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
Source File: AbstractVersionStrategy.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 8
Source File: AbstractVersionStrategy.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public String removeVersion(String requestPath, String version) {
	return StringUtils.delete(requestPath, "-" + version);
}
 
Example 9
Source File: AmazonWebserviceClientConfigurationUtils.java    From spring-cloud-aws with Apache License 2.0 4 votes vote down vote up
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
Source File: QueryUtils.java    From ueboot with BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
/**
 * <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");
}