public class MappingImpl extends Object implements HttpServletMapping
Constructor and Description |
---|
MappingImpl(String matchValue,
String pattern,
MappingMatch matchType,
String servletName) |
Modifier and Type | Method and Description |
---|---|
MappingMatch |
getMappingMatch()
Return the
MappingMatch for this
instance |
String |
getMatchValue()
Return the portion of the URI path that caused this request to
be matched or the empty String if not known or not knowable.
|
String |
getPattern()
Return the String representation for the
url-pattern
for this mapping or the empty String if not known or not
knowable. |
String |
getServletName()
Return the String representation for the
servlet-name for this mapping or the empty String if not known
or not knowable. |
public MappingImpl(String matchValue, String pattern, MappingMatch matchType, String servletName)
public String getMatchValue()
HttpServletMapping
Return the portion of the URI path that caused this request to
be matched or the empty String if not known or not knowable. 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.
getMatchValue
in interface HttpServletMapping
public String getPattern()
HttpServletMapping
Return the String representation for the url-pattern
for this mapping or the empty String if not known or not
knowable. If the getMappingMatch
value is CONTEXT_ROOT
or DEFAULT
, 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.
getPattern
in interface HttpServletMapping
url-pattern
for this mapping or the empty String if not known
or not knowable.public String getServletName()
HttpServletMapping
Return the String representation for the
servlet-name
for this mapping or the empty String if not known
or not knowable.
getServletName
in interface HttpServletMapping
servlet-name
for this mapping or the empty String if not known
or not knowable.public MappingMatch getMappingMatch()
HttpServletMapping
Return the MappingMatch
for this
instance
getMappingMatch
in interface HttpServletMapping
MappingMatch
for this instance.Copyright © 2018 JBoss by Red Hat. All rights reserved.