All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rtdi.bigdata.connector.pipeline.foundation.TopicUtil Maven / Gradle / Ivy

There is a newer version: 0.10.20
Show newest version
package io.rtdi.bigdata.connector.pipeline.foundation;

import io.rtdi.bigdata.connector.pipeline.foundation.exceptions.PropertiesException;

/**
 * Some helper methods around topics
 *
 */
public class TopicUtil {

	public static String validate(String s) throws PropertiesException {
		if (s == null) {
			return s;
		} else if (s.contains("-")) {
			throw new PropertiesException("A - char is not allowed in the topic name parts (" + s + ")");
//		} else if (s.contains(".")) {
//			throw new PropertiesException("A . char is not allowed in the topic name parts (" + s + ")");
		} else {
			return s;
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy