接口 JerseyApplicationPath
- 所有已知实现类:
DefaultJerseyApplicationPath
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Interface that can be used by auto-configurations that need path details Jersey's
application path that serves as the base URI for the application.
- 从以下版本开始:
- 2.0.7
- 作者:
- Madhura Bhave
-
方法概要
修饰符和类型方法说明getPath()
Returns the configured path of the application.default String
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 Jersey application path.default String
Return a URL mapping pattern that can be used with aServletRegistrationBean
to map Jersey's servlet.
-
方法详细资料
-
getPath
String getPath()Returns the configured path of the application.- 返回:
- the configured path
-
getRelativePath
Return a form of the given path that's relative to the Jersey application path.- 参数:
path
- the path to make relative- 返回:
- the relative path
-
getPrefix
Return a cleaned up version of the path that can be used as a prefix for URLs. The resulting path will have path will not have a trailing slash.- 返回:
- the prefix
- 另请参阅:
-
getUrlMapping
Return a URL mapping pattern that can be used with aServletRegistrationBean
to map Jersey's servlet.- 返回:
- the path as a servlet URL mapping
-