File tree 1 file changed +21
-0
lines changed
spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,9 @@ public class MockHttpServletRequest implements HttpServletRequest {
256
256
@ Nullable
257
257
private String requestedSessionId ;
258
258
259
+ @ Nullable
260
+ private String uriTemplate ;
261
+
259
262
@ Nullable
260
263
private String requestURI ;
261
264
@@ -1284,6 +1287,24 @@ public String getRequestedSessionId() {
1284
1287
return this .requestedSessionId ;
1285
1288
}
1286
1289
1290
+ /**
1291
+ * Set the original URI template used to prepare the request, if any.
1292
+ * @param uriTemplate the URI template used to set up the request, if any
1293
+ * @since 6.2
1294
+ */
1295
+ public void setUriTemplate (@ Nullable String uriTemplate ) {
1296
+ this .uriTemplate = uriTemplate ;
1297
+ }
1298
+
1299
+ /**
1300
+ * Return the original URI template used to prepare the request, if any.
1301
+ * @since 6.2
1302
+ */
1303
+ @ Nullable
1304
+ public String getUriTemplate () {
1305
+ return this .uriTemplate ;
1306
+ }
1307
+
1287
1308
public void setRequestURI (@ Nullable String requestURI ) {
1288
1309
this .requestURI = requestURI ;
1289
1310
}
You can’t perform that action at this time.
0 commit comments