MCPcopy Create free account
hub / github.com/apache/tomcat / getVariableNames

Method getVariableNames

java/org/apache/catalina/ssi/SSIMediator.java:210–220  ·  view source on GitHub ↗

Returns the collection of all available variable names, including built-in and external variables. @return the collection of variable names

()

Source from the content-addressed store, hash-verified

208 * @return the collection of variable names
209 */
210 public Collection<String> getVariableNames() {
211 Set<String> variableNames = new HashSet<>();
212 // These built-in variables are supplied by the mediator (if not over-written by the user) and always exist
213 variableNames.add("DATE_GMT");
214 variableNames.add("DATE_LOCAL");
215 variableNames.add("LAST_MODIFIED");
216 ssiExternalResolver.addVariableNames(variableNames);
217 // Remove any variables that are reserved by this class
218 variableNames.removeIf(this::isNameReserved);
219 return variableNames;
220 }
221
222
223 /**

Callers 1

processMethod · 0.80

Calls 3

removeIfMethod · 0.80
addMethod · 0.65
addVariableNamesMethod · 0.65

Tested by

no test coverage detected