Class MappingImpl
- All Implemented Interfaces:
HttpServletMapping
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionMappingImpl(String matchValue, String pattern, MappingMatch matchType, String servletName) -
Method Summary
Modifier and TypeMethodDescriptionReturn theMappingMatchfor this instanceReturn the portion of the URI path that caused this request to be matched.Return the String representation for theurl-patternfor this mapping.Return the String representation for theservlet-namefor this mapping.
-
Constructor Details
-
MappingImpl
-
-
Method Details
-
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
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
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
Description copied from interface:HttpServletMappingReturn the
MappingMatchfor this instance- Specified by:
getMappingMatchin interfaceHttpServletMapping- Returns:
- the
MappingMatchfor this instance.
-