Add some more documentation to TemplateQueryParser

Relates to #4879
This commit is contained in:
Isabel Drost-Fromm 2014-03-20 17:58:27 +01:00 committed by Luca Cavanna
parent 84af7d9f9a
commit dcfc7cead0
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,12 @@ public class TemplateQueryParser implements QueryParser {
return new String[] {NAME};
}
/**
* Parses the template query replacing template parameters with provided values.
* Handles both submitting the template as part of the request as well as
* referencing only the template name.
* @param parseContext parse context containing the templated query.
*/
@Override
@Nullable
public Query parse(QueryParseContext parseContext) throws IOException {