Package org.eclipse.jetty.server
Class ServletPathMapping
java.lang.Object
org.eclipse.jetty.server.ServletPathMapping
- All Implemented Interfaces:
jakarta.servlet.http.HttpServletMapping
Implementation of HttpServletMapping.
Represents the application of a
ServletPathSpec
to a specific path
that resulted in a mapping to a 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()
-
Constructor Summary
ConstructorDescriptionServletPathMapping
(PathSpec pathSpec, String servletName, String pathInContext) ServletPathMapping
(PathSpec pathSpec, String servletName, String pathInContext, MatchedPath matchedPath) -
Method Summary
-
Constructor Details
-
ServletPathMapping
public ServletPathMapping(PathSpec pathSpec, String servletName, String pathInContext, MatchedPath matchedPath) -
ServletPathMapping
-
-
Method Details
-
getMatchValue
- Specified by:
getMatchValue
in interfacejakarta.servlet.http.HttpServletMapping
-
getPattern
- Specified by:
getPattern
in interfacejakarta.servlet.http.HttpServletMapping
-
getServletName
- Specified by:
getServletName
in interfacejakarta.servlet.http.HttpServletMapping
-
getMappingMatch
public jakarta.servlet.http.MappingMatch getMappingMatch()- Specified by:
getMappingMatch
in interfacejakarta.servlet.http.HttpServletMapping
-
getServletPath
-
getPathInfo
-
toString
-