Top Description Methods
jakarta.servlet.http

public Interface HttpServletMapping

Known Direct Implementers
org.apache.catalina.core.ApplicationMapping.MappingImpl
Imports
jakarta.servlet.annotation.WebServlet

Represents how the request from which this object was obtained was mapped to the associated servlet.
Since
Servlet 4.0

Method Summary

Modifier and TypeMethod and Description
public MappingMatch

Returns:

The type of match (null if not known)
getMappingMatch
()

public String

Returns:

The value that was matched or the empty String if not known.
getMatchValue
()

public String

Returns:

The url-pattern that matched this request or the empty String if not known.
getPattern
()

public String

Returns:

The name of the servlet (as specified in web.xml, WebServlet#name(), jakarta.servlet.ServletContext#addServlet(String, Class) or one of the other addServlet() methods) that the request was mapped to.
getServletName
()

Method Detail

getMappingMatchback to summary
public MappingMatch getMappingMatch()
Returns:MappingMatch

The type of match (null if not known)

getMatchValueback to summary
public String getMatchValue()
Returns:String

The value that was matched or the empty String if not known.

getPatternback to summary
public String getPattern()
Returns:String

The url-pattern that matched this request or the empty String if not known.

getServletNameback to summary
public String getServletName()
Returns:String

The name of the servlet (as specified in web.xml, WebServlet#name(), jakarta.servlet.ServletContext#addServlet(String, Class) or one of the other addServlet() methods) that the request was mapped to.