Skip to content

Commit

Permalink
Fix jakartaee#105 - clarify requirements for path in getRealPath(Stri…
Browse files Browse the repository at this point in the history
…ng path)

Signed-off-by: Mark Thomas <[email protected]>
  • Loading branch information
markt-asf committed Nov 27, 2020
1 parent f9da4fb commit 381d5fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ 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 381d5fc

Please sign in to comment.