public void addTemplate ( String templateName , URLTemplate template ) { if ( templateName == null || templateName . length ( ) == 0 ) { throw new IllegalArgumentException ( "Template name cannot be null or empty." ) ; } if ( template == null ) { throw new IllegalArgumentException ( "URLTemplate cannot be null." ) ; } _templates . put ( templateName , template ) ; }
Add a template from url - template - config by name .