@@ -314,6 +314,14 @@ module Http {
314314 * This is typically the name of the method that gives rise to this input.
315315 */
316316 string getSourceType ( ) { result = super .getSourceType ( ) }
317+
318+ /**
319+ * Gets the kind of the accessed input,
320+ * Can be one of "parameter", "header", "body", "url", "cookie".
321+ *
322+ * Note that this predicate is functional.
323+ */
324+ string getKind ( ) { result = super .getKind ( ) }
317325 }
318326
319327 /** Provides a class for modeling new HTTP request inputs. */
@@ -331,6 +339,14 @@ module Http {
331339 * This is typically the name of the method that gives rise to this input.
332340 */
333341 abstract string getSourceType ( ) ;
342+
343+ /**
344+ * Gets the kind of the accessed input,
345+ * Can be one of "parameter", "header", "body", "url", "cookie".
346+ *
347+ * Note that this predicate is functional.
348+ */
349+ abstract string getKind ( ) ;
334350 }
335351 }
336352
@@ -411,6 +427,8 @@ module Http {
411427 RoutedParameter ( ) { this .getParameter ( ) = handler .getARoutedParameter ( ) }
412428
413429 override string getSourceType ( ) { result = handler .getFramework ( ) + " RoutedParameter" }
430+
431+ override string getKind ( ) { result = "url" }
414432 }
415433
416434 /**
0 commit comments