public static void checkTopicName ( String topicName ) throws JMSException { if ( topicName == null ) throw new FFMQException ( "Topic name is not set" , "INVALID_DESTINATION_NAME" ) ; if ( topicName . length ( ) > FFMQConstants . MAX_TOPIC_NAME_SIZE ) throw new FFMQException ( "Topic name '" + topicName + "' is too long (" + topicName . length ( ) + " > " + FFMQConstants . MAX_TOPIC_NAME_SIZE + ")" , "INVALID_DESTINATION_NAME" ) ; checkDestinationName ( topicName ) ; }
Check the validity of a topic name