Class ServletPathMapping

java.lang.Object
org.eclipse.jetty.ee10.servlet.ServletPathMapping
All Implemented Interfaces:
jakarta.servlet.http.HttpServletMapping

public class ServletPathMapping extends 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 Details

  • Method Details

    • getMatchValue

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

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

      public 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 String getServletPath()
    • getPathInfo

      public String getPathInfo()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static ServletPathMapping from(Object o)
      Obtain a ServletPathMapping 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