Class ThreadLocalizedExtendedUriInfo

  • All Implemented Interfaces:
    javax.ws.rs.core.UriInfo, ExtendedUriInfo

    @Deprecated
    public class ThreadLocalizedExtendedUriInfo
    extends ThreadLocalizedUriInfo
    implements ExtendedUriInfo
    Deprecated.
    Will be removed in next minor release.
    A ThreadLocalizedUriInfo is used to inject, if a UriInfo is required to inject. It must be new instantiated for every place to inject.
    See Also:
    UriInfo, ThreadLocalizedContext
    • Constructor Detail

      • ThreadLocalizedExtendedUriInfo

        public ThreadLocalizedExtendedUriInfo​(ThreadLocalizedContext tlContext)
        Deprecated.
        Parameters:
        tlContext -
    • Method Detail

      • getAbsolutePathBuilder

        public ExtendedUriBuilder getAbsolutePathBuilder()
        Deprecated.
        Get the absolute path of the request in the form of an ExtendedUriBuilder. This includes everything preceding the path (host, port etc) but excludes query parameters. It also includes the extension of the current request.
        Specified by:
        getAbsolutePathBuilder in interface ExtendedUriInfo
        Specified by:
        getAbsolutePathBuilder in interface javax.ws.rs.core.UriInfo
        Overrides:
        getAbsolutePathBuilder in class ThreadLocalizedUriInfo
        Returns:
        an ExtendedUriBuilder initialized with the absolute path of the request and an extension according to the current chosen media type.
        Throws:
        java.lang.IllegalStateException - if called outside the scope of a request
        See Also:
        UriInfo.getAbsolutePathBuilder()
      • getBaseUriBuilder

        public ExtendedUriBuilder getBaseUriBuilder()
        Deprecated.
        Get the base URI of the application in the form of a UriBuilder. It also includes the extension of the current request.
        Specified by:
        getBaseUriBuilder in interface ExtendedUriInfo
        Specified by:
        getBaseUriBuilder in interface javax.ws.rs.core.UriInfo
        Overrides:
        getBaseUriBuilder in class ThreadLocalizedUriInfo
        Returns:
        a UriBuilder initialized with the base URI of the application and an extension according to the current chosen media type.
        See Also:
        UriInfo.getBaseUriBuilder()
      • getRequestUriBuilder

        public ExtendedUriBuilder getRequestUriBuilder()
        Deprecated.
        Get the absolute request URI in the form of a UriBuilder. It also includes the extension of the current request.
        Specified by:
        getRequestUriBuilder in interface ExtendedUriInfo
        Specified by:
        getRequestUriBuilder in interface javax.ws.rs.core.UriInfo
        Overrides:
        getRequestUriBuilder in class ThreadLocalizedUriInfo
        Returns:
        a UriBuilder initialized with the absolute request URI and an extension according to the current chosen media type
        Throws:
        java.lang.IllegalStateException - if called outside the scope of a request
        See Also:
        JaxRsUriInfo#getRequestUriBuilder(), UriInfo.getRequestUriBuilder()