Top Fields Constructors Methods
io.undertow.servlet.spec

public Class MappingImpl

extends Object
implements HttpServletMapping
Class Inheritance
All Implemented Interfaces
jakarta.servlet.http.HttpServletMapping
Imports
jakarta.servlet.http.HttpServletMapping, .MappingMatch

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final MappingMatch
private final String
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
MappingImpl(String matchValue, String pattern, MappingMatch matchType, String servletName)

Method Summary

Modifier and TypeMethod and Description
public MappingMatch
public String
getMatchValue()

Implements jakarta.servlet.http.HttpServletMapping.getMatchValue.

Return the portion of the URI path that caused this request to be matched.

public String
getPattern()

Implements jakarta.servlet.http.HttpServletMapping.getPattern.

Return the String representation for the url-pattern for this mapping.

public String
getServletName()

Implements jakarta.servlet.http.HttpServletMapping.getServletName.

Return the String representation for the servlet-name for this mapping.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

matchTypeback to summary
private final MappingMatch matchType
matchValueback to summary
private final String matchValue
patternback to summary
private final String pattern
servletNameback to summary
private final String servletName

Constructor Detail

MappingImplback to summary
public MappingImpl(String matchValue, String pattern, MappingMatch matchType, String servletName)

Method Detail

getMappingMatchback to summary
public MappingMatch getMappingMatch()

Implements jakarta.servlet.http.HttpServletMapping.getMappingMatch.

Doc from jakarta.servlet.http.HttpServletMapping.getMappingMatch.

Return the MappingMatch for this instance

Returns:MappingMatch

the MappingMatch for this instance.

Annotations
@Override
getMatchValueback to summary
public String getMatchValue()

Implements jakarta.servlet.http.HttpServletMapping.getMatchValue.

Doc from jakarta.servlet.http.HttpServletMapping.getMatchValue.

Return the portion of the URI path that caused this request to be matched. If the getMappingMatch value is CONTEXT_ROOT or DEFAULT, this method must return the empty string. If the getMappingMatch value is EXACT, this method must return the portion of the path that matched the servlet, omitting any leading slash. If the getMappingMatch value is EXTENSION or PATH, this method must return the value that matched the '*'. See the class javadoc for examples.

Returns:String

the match.

Annotations
@Override
getPatternback to summary
public String getPattern()

Implements jakarta.servlet.http.HttpServletMapping.getPattern.

Doc from jakarta.servlet.http.HttpServletMapping.getPattern.

Return the String representation for the url-pattern for this mapping. If the getMappingMatch value is CONTEXT_ROOT, this method must return the empty string. If the getMappingMatch value is EXTENSION, this method must return the pattern, without any leading slash. Otherwise, this method returns the pattern exactly as specified in the descriptor or Java configuration.

Returns:String

the String representation for the url-pattern for this mapping.

Annotations
@Override
getServletNameback to summary
public String getServletName()

Implements jakarta.servlet.http.HttpServletMapping.getServletName.

Doc from jakarta.servlet.http.HttpServletMapping.getServletName.

Return the String representation for the servlet-name for this mapping. If the Servlet providing the response is the default servlet, the return from this method is the name of the default servlet, which is container specific.

Returns:String

the String representation for the servlet-name for this mapping.

Annotations
@Override