@FunctionalInterface
public interface DispatcherServletPath
default
DispatcherServlet
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath()
Returns the configured path of the dispatcher servlet.
|
default java.lang.String |
getPrefix()
Return a cleaned up version of the path that can be used as a prefix for URLs.
|
default java.lang.String |
getRelativePath(java.lang.String path)
Return a form of the given path that's relative to the dispatcher servlet path.
|
default java.lang.String |
getServletUrlMapping()
Return a URL mapping pattern that can be used with a
ServletRegistrationBean to map the dispatcher servlet. |
java.lang.String getPath()
default java.lang.String getRelativePath(java.lang.String path)
path
- the path to make relativedefault java.lang.String getPrefix()
getRelativePath(String)
default java.lang.String getServletUrlMapping()
ServletRegistrationBean
to map the dispatcher servlet.