Skip to content

Commit

Permalink
Fix #105 - clarify requirements for path in getRealPath(String path)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Thomas <[email protected]>
  • Loading branch information
markt-asf committed Jan 18, 2021
1 parent e9c62ac commit 890cc6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/src/main/java/jakarta/servlet/ServletContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,11 @@ public interface ServletContext {

/**
* Gets the <i>real</i> path corresponding to the given <i>virtual</i> path.
*
* <p>
* The path should begin with a <tt>/</tt> and is interpreted as relative to the current context root. If the path does
* not begin with a <tt>/</tt>, the container will behave as if the method was called with <tt>/</tt> appended to the
* beginning of the provided path.
*
* <p>
* For example, if <tt>path</tt> is equal to <tt>/index.html</tt>, this method will return the absolute file path on the
Expand Down

0 comments on commit 890cc6f

Please sign in to comment.