Package org.eclipse.jetty.ee10.servlet
Class ServletPathMapping
java.lang.Object
org.eclipse.jetty.ee10.servlet.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
Modifier and TypeMethodDescriptionstatic ServletPathMapping
Obtain aServletPathMapping
instance from an object which may be an instance of a mapping from a different EE version obtained from a cross context cross environment dispatchjakarta.servlet.http.MappingMatch
toString()
-
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
-
from
Obtain aServletPathMapping
instance from an object which may be an instance of a mapping from a different EE version obtained from a cross context cross environment dispatch- Parameters:
o
- The object to caste or deserialize from the string representation.- Returns:
- A ServletPathMapping
-