public URLTemplate [ ] getTemplates ( ) { URLTemplate [ ] templates = new URLTemplate [ _templates . size ( ) ] ; int index = 0 ; for ( Iterator i = _templates . keySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { String name = ( String ) i . next ( ) ; templates [ index ++ ] = getTemplate ( name ) ; } return templates ; }
Returns the URL templates from url - template - config by name . Always returns a copy of the URLTemplates with the same parsed template data but with cleared set of token values . This allows multiple client requests access to the same parsed template structure without requiring it to be parsed for each request .