ServletPathSpec to a specific path
that resulted in a mapping to a jakarta.servlet.Servlet .
As well as supporting the standard HttpServletMapping methods, this
class also carries fields, which can be precomputed for the implementation
of HttpServletRequest#getServletPath() and
HttpServletRequest#getPathInfo()
| Modifier and Type | Field and Description |
|---|---|
| private final MappingMatch | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | ServletPathMapping(PathSpec pathSpec, String servletName, String pathInContext, MatchedPath matchedPath)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MappingMatch | getMappingMatch()
Implements jakarta.
Return the |
| public String | getMatchValue()
Implements jakarta. Return the portion of the URI path that caused this request to be matched. |
| public String | |
| public String | getPattern()
Implements jakarta.
Return the String representation for the |
| public String | getServletName()
Implements jakarta.
Return the String representation for the |
| public String | |
| public String |
| _mappingMatch | back to summary |
|---|---|
| private final MappingMatch _mappingMatch | |
| _matchValue | back to summary |
|---|---|
| private final String _matchValue | |
| _pathInfo | back to summary |
|---|---|
| private final String _pathInfo | |
| _pattern | back to summary |
|---|---|
| private final String _pattern | |
| _servletName | back to summary |
|---|---|
| private final String _servletName | |
| _servletPath | back to summary |
|---|---|
| private final String _servletPath | |
| ServletPathMapping | back to summary |
|---|---|
| public ServletPathMapping(PathSpec pathSpec, String servletName, String pathInContext, MatchedPath matchedPath) | |
| ServletPathMapping | back to summary |
|---|---|
| public ServletPathMapping(PathSpec pathSpec, String servletName, String pathInContext) | |
| getMappingMatch | back to summary |
|---|---|
| public MappingMatch getMappingMatch() Implements jakarta. Doc from jakarta.
Return the
| |
| getMatchValue | back to summary |
|---|---|
| public String getMatchValue() Implements jakarta. Doc from jakarta.
Return the portion of the URI path that caused this request to be matched. If the | |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo() | |
| getPattern | back to summary |
|---|---|
| public String getPattern() Implements jakarta. Doc from jakarta.
Return the String representation for the | |
| getServletName | back to summary |
|---|---|
| public String getServletName() Implements jakarta. Doc from jakarta.
Return the String representation for the | |
| getServletPath | back to summary |
|---|---|
| public String getServletPath() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |