Class ServletPathMapping

  • All Implemented Interfaces:

    public class ServletPathMapping
    extends java.lang.Object
    implements 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 Detail

      • ServletPathMapping

        public ServletPathMapping​(PathSpec pathSpec,
                                  java.lang.String servletName,
                                  java.lang.String pathInContext)
    • Method Detail

      • getMatchValue

        public java.lang.String getMatchValue()
        Specified by:
        getMatchValue in interface jakarta.servlet.http.HttpServletMapping
      • getPattern

        public java.lang.String getPattern()
        Specified by:
        getPattern in interface jakarta.servlet.http.HttpServletMapping
      • getServletName

        public java.lang.String getServletName()
        Specified by:
        getServletName in interface jakarta.servlet.http.HttpServletMapping
      • getMappingMatch

        public jakarta.servlet.http.MappingMatch getMappingMatch()
        Specified by:
        getMappingMatch in interface jakarta.servlet.http.HttpServletMapping
      • getServletPath

        public java.lang.String getServletPath()
      • getPathInfo

        public java.lang.String getPathInfo()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object