Class ThreadLocalizedExtendedUriInfo
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.core.ThreadLocalizedUriInfo
-
- org.restlet.ext.jaxrs.internal.core.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 aUriInfois required to inject. It must be new instantiated for every place to inject.- See Also:
UriInfo,ThreadLocalizedContext
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalizedExtendedUriInfo(ThreadLocalizedContext tlContext)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExtendedUriBuildergetAbsolutePathBuilder()Deprecated.Get the absolute path of the request in the form of anExtendedUriBuilder.ExtendedUriBuildergetBaseUriBuilder()Deprecated.Get the base URI of the application in the form of a UriBuilder.ExtendedUriBuildergetRequestUriBuilder()Deprecated.Get the absolute request URI in the form of a UriBuilder.-
Methods inherited from class org.restlet.ext.jaxrs.internal.core.ThreadLocalizedUriInfo
getAbsolutePath, getBaseUri, getCallContext, getMatchedResources, getMatchedURIs, getMatchedURIs, getPath, getPath, getPathParameters, getPathParameters, getPathSegments, getPathSegments, getQueryParameters, getQueryParameters, getQueryParameters, getRequestUri, reset, saveStateForCurrentThread
-
-
-
-
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 anExtendedUriBuilder. This includes everything preceding the path (host, port etc) but excludes query parameters. It also includes the extension of the current request.- Specified by:
getAbsolutePathBuilderin interfaceExtendedUriInfo- Specified by:
getAbsolutePathBuilderin interfacejavax.ws.rs.core.UriInfo- Overrides:
getAbsolutePathBuilderin classThreadLocalizedUriInfo- 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:
getBaseUriBuilderin interfaceExtendedUriInfo- Specified by:
getBaseUriBuilderin interfacejavax.ws.rs.core.UriInfo- Overrides:
getBaseUriBuilderin classThreadLocalizedUriInfo- 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:
getRequestUriBuilderin interfaceExtendedUriInfo- Specified by:
getRequestUriBuilderin interfacejavax.ws.rs.core.UriInfo- Overrides:
getRequestUriBuilderin classThreadLocalizedUriInfo- 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()
-
-