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