Package org.eclipse.jetty.server
Class ServletPathMapping
java.lang.Object
org.eclipse.jetty.server.ServletPathMapping
- All Implemented Interfaces:
javax.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 Summary
ConstructorDescriptionServletPathMapping
(PathSpec pathSpec, String servletName, String pathInContext) ServletPathMapping
(PathSpec pathSpec, String servletName, String pathInContext, MatchedPath matchedPath) -
Method Summary
-
Constructor Details
-
ServletPathMapping
public ServletPathMapping(PathSpec pathSpec, String servletName, String pathInContext, MatchedPath matchedPath) -
ServletPathMapping
-
-
Method Details
-
getMatchValue
- Specified by:
getMatchValue
in interfacejavax.servlet.http.HttpServletMapping
-
getPattern
- Specified by:
getPattern
in interfacejavax.servlet.http.HttpServletMapping
-
getServletName
- Specified by:
getServletName
in interfacejavax.servlet.http.HttpServletMapping
-
getMappingMatch
public javax.servlet.http.MappingMatch getMappingMatch()- Specified by:
getMappingMatch
in interfacejavax.servlet.http.HttpServletMapping
-
getServletPath
-
getPathInfo
-
toString
-