接口 JerseyApplicationPath

  • 函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    public interface JerseyApplicationPath
    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
    • 方法详细资料

      • getPath

        String getPath()
        Returns the configured path of the application.
        返回:
        the configured path
      • getRelativePath

        default String getRelativePath​(String path)
        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

        default String 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
        另请参阅:
        getRelativePath(String)
      • getUrlMapping

        default String getUrlMapping()
        Return a URL mapping pattern that can be used with a ServletRegistrationBean to map Jersey's servlet.
        返回:
        the path as a servlet URL mapping