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

The following examples show how to use org.springframework.util.StringUtils#mergeStringArrays() . 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
public void initStandardMapping(String[] modes, RequestMethod[] methods, String[] params, String[] headers) {
	for (String mode : modes) {
		this.modes.add(new PortletMode(mode));
	}
	for (RequestMethod method : methods) {
		this.methods.add(method.name());
	}
	this.params = StringUtils.mergeStringArrays(this.params, params);
	this.headers = StringUtils.mergeStringArrays(this.headers, headers);
}
 
Example 2
public void initPhaseMapping(String phase, String value, String[] params) {
	if (this.phase != null) {
		throw new IllegalStateException(
				"Invalid mapping - more than one phase specified: '" + this.phase + "', '" + phase + "'");
	}
	this.phase = phase;
	this.value = value;
	this.params = StringUtils.mergeStringArrays(this.params, params);
}