Skip to content

Commit

Permalink
Sync MockHttpServletRequest implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Sep 9, 2024
1 parent d5f1e05 commit eff19ec
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ public class MockHttpServletRequest implements HttpServletRequest {
@Nullable
private String requestedSessionId;

@Nullable
private String uriTemplate;

@Nullable
private String requestURI;

Expand Down Expand Up @@ -1284,6 +1287,24 @@ public String getRequestedSessionId() {
return this.requestedSessionId;
}

/**
* Set the original URI template used to prepare the request, if any.
* @param uriTemplate the URI template used to set up the request, if any
* @since 6.2
*/
public void setUriTemplate(@Nullable String uriTemplate) {
this.uriTemplate = uriTemplate;
}

/**
* Return the original URI template used to prepare the request, if any.
* @since 6.2
*/
@Nullable
public String getUriTemplate() {
return this.uriTemplate;
}

public void setRequestURI(@Nullable String requestURI) {
this.requestURI = requestURI;
}
Expand Down

0 comments on commit eff19ec

Please sign in to comment.