Class MappingImpl
- java.lang.Object
-
- io.undertow.servlet.spec.MappingImpl
-
- All Implemented Interfaces:
HttpServletMapping
public class MappingImpl extends Object implements HttpServletMapping
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description MappingImpl(String matchValue, String pattern, MappingMatch matchType, String servletName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingMatchgetMappingMatch()Return theMappingMatchfor this instanceStringgetMatchValue()Return the portion of the URI path that caused this request to be matched.StringgetPattern()Return the String representation for theurl-patternfor this mapping.StringgetServletName()Return the String representation for theservlet-namefor this mapping.
-
-
-
Constructor Detail
-
MappingImpl
public MappingImpl(String matchValue, String pattern, MappingMatch matchType, String servletName)
-
-
Method Detail
-
getMatchValue
public String getMatchValue()
Description copied from interface:HttpServletMappingReturn the portion of the URI path that caused this request to be matched. If the
HttpServletMapping.getMappingMatch()value isCONTEXT_ROOTorDEFAULT, this method must return the empty string. If theHttpServletMapping.getMappingMatch()value isEXACT, this method must return the portion of the path that matched the servlet, omitting any leading slash. If theHttpServletMapping.getMappingMatch()value isEXTENSIONorPATH, this method must return the value that matched the '*'. See the class javadoc for examples.- Specified by:
getMatchValuein interfaceHttpServletMapping- Returns:
- the match.
-
getPattern
public String getPattern()
Description copied from interface:HttpServletMappingReturn the String representation for the
url-patternfor this mapping. If theHttpServletMapping.getMappingMatch()value isCONTEXT_ROOT, this method must return the empty string. If theHttpServletMapping.getMappingMatch()value isEXTENSION, 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.- Specified by:
getPatternin interfaceHttpServletMapping- Returns:
- the String representation for the
url-patternfor this mapping.
-
getServletName
public String getServletName()
Description copied from interface:HttpServletMappingReturn the String representation for the
servlet-namefor 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.- Specified by:
getServletNamein interfaceHttpServletMapping- Returns:
- the String representation for the
servlet-namefor this mapping.
-
getMappingMatch
public MappingMatch getMappingMatch()
Description copied from interface:HttpServletMappingReturn the
MappingMatchfor this instance- Specified by:
getMappingMatchin interfaceHttpServletMapping- Returns:
- the
MappingMatchfor this instance.
-
-