Class ThreadLocalizedUriInfo

  • All Implemented Interfaces:
    javax.ws.rs.core.UriInfo
    Direct Known Subclasses:
    ThreadLocalizedExtendedUriInfo

    @Deprecated
    public class ThreadLocalizedUriInfo
    extends java.lang.Object
    implements javax.ws.rs.core.UriInfo
    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

      • ThreadLocalizedUriInfo

        public ThreadLocalizedUriInfo​(ThreadLocalizedContext tlContext)
        Deprecated.
        Creates a new ThreadLocalizedUriInfo
        Parameters:
        tlContext -
    • Method Detail

      • createAncestorInfo

        private MatchedInfo createAncestorInfo()
                                        throws java.lang.IllegalStateException
        Deprecated.
        Returns:
        the MatchedInfo with the current data from the CallContext.
        Throws:
        java.lang.IllegalStateException - if no CallContext could be loaded.
      • get

        private MatchedInfo get()
                         throws java.lang.IllegalStateException
        Deprecated.
        Throws:
        java.lang.IllegalStateException
      • getAbsolutePath

        public java.net.URI getAbsolutePath()
        Deprecated.
        Specified by:
        getAbsolutePath in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getAbsolutePath(), UriInfo.getAbsolutePath()
      • getAbsolutePathBuilder

        public javax.ws.rs.core.UriBuilder getAbsolutePathBuilder()
        Deprecated.
        Specified by:
        getAbsolutePathBuilder in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getAbsolutePathBuilder(), UriInfo.getAbsolutePathBuilder(), ExtendedUriInfo.getAbsolutePathBuilder()
      • getBaseUri

        public java.net.URI getBaseUri()
        Deprecated.
        Specified by:
        getBaseUri in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getBaseUri(), UriInfo.getBaseUri()
      • getBaseUriBuilder

        public javax.ws.rs.core.UriBuilder getBaseUriBuilder()
        Deprecated.
        Specified by:
        getBaseUriBuilder in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getBaseUriBuilder(), UriInfo.getBaseUriBuilder()
      • getCallContext

        protected CallContext getCallContext()
                                      throws java.lang.IllegalStateException
        Deprecated.
        Throws:
        java.lang.IllegalStateException
      • getMatchedResources

        public java.util.List<java.lang.Object> getMatchedResources()
        Deprecated.
        Specified by:
        getMatchedResources in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getMatchedResources(), UriInfo.getMatchedResources()
      • getMatchedURIs

        public java.util.List<java.lang.String> getMatchedURIs()
        Deprecated.
        Specified by:
        getMatchedURIs in interface javax.ws.rs.core.UriInfo
        See Also:
        UriInfo.getMatchedURIs()
      • getMatchedURIs

        public java.util.List<java.lang.String> getMatchedURIs​(boolean decode)
        Deprecated.
        Specified by:
        getMatchedURIs in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getAncestorResourceURIs(boolean), UriInfo#getAncestorResourceURIs(boolean)
      • getPath

        public java.lang.String getPath()
        Deprecated.
        Specified by:
        getPath in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getPath(), UriInfo.getPath()
      • getPath

        public java.lang.String getPath​(boolean decode)
        Deprecated.
        Specified by:
        getPath in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getPath(boolean), UriInfo.getPath(boolean)
      • getPathParameters

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getPathParameters()
        Deprecated.
        Specified by:
        getPathParameters in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getPathParameters(), UriInfo.getPathParameters()
      • getPathParameters

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getPathParameters​(boolean decode)
        Deprecated.
        Specified by:
        getPathParameters in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getPathParameters(boolean), UriInfo.getPathParameters(boolean)
      • getPathSegments

        public java.util.List<javax.ws.rs.core.PathSegment> getPathSegments()
        Deprecated.
        Specified by:
        getPathSegments in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getPathSegments(), UriInfo.getPathSegments()
      • getPathSegments

        public java.util.List<javax.ws.rs.core.PathSegment> getPathSegments​(boolean decode)
        Deprecated.
        Specified by:
        getPathSegments in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getPathSegments(boolean), UriInfo.getPathSegments(boolean)
      • getQueryParameters

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getQueryParameters()
        Deprecated.
        Specified by:
        getQueryParameters in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getQueryParameters(), UriInfo.getQueryParameters()
      • getQueryParameters

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getQueryParameters​(boolean decode)
        Deprecated.
        Specified by:
        getQueryParameters in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getQueryParameters(boolean), UriInfo.getQueryParameters(boolean)
      • getQueryParameters

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getQueryParameters​(boolean decode,
                                                                                                           boolean caseSensitive)
        Deprecated.
        See Also:
        JaxRsUriInfo#getQueryParameters(boolean), UriInfo.getQueryParameters(boolean)
      • getRequestUri

        public java.net.URI getRequestUri()
        Deprecated.
        Specified by:
        getRequestUri in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getRequestUri(), UriInfo.getRequestUri()
      • getRequestUriBuilder

        public javax.ws.rs.core.UriBuilder getRequestUriBuilder()
        Deprecated.
        Specified by:
        getRequestUriBuilder in interface javax.ws.rs.core.UriInfo
        See Also:
        JaxRsUriInfo#getRequestUriBuilder(), UriInfo.getRequestUriBuilder()
      • reset

        public void reset()
        Deprecated.
        Removes the MatchedInfo for the current thread.
      • saveStateForCurrentThread

        public void saveStateForCurrentThread​(boolean saveState)
        Deprecated.
        Saves the current state of the ancestorResource(URI)s for the current thread.
        Parameters:
        saveState - if true, the current state is save for the current thread from the current CallContext; if false (for singeltons), the saved object for the current thread is removed.