Package org.restlet.ext.jaxrs
Interface ExtendedUriInfo
-
- All Superinterfaces:
javax.ws.rs.core.UriInfo
- All Known Implementing Classes:
ThreadLocalizedExtendedUriInfo
@Deprecated public interface ExtendedUriInfo extends javax.ws.rs.core.UriInfoDeprecated.Will be removed in next minor release.ThisUriInfoextension returnsUriBuilders which contains the "file" extension given by the request. This extension will also be available, if the path will be changed (e.g. replaced, removed or matrix parameters added). For further information seeExtendedUriBuilder.extension(String),ExtendedUriBuilder.extensionLanguage(String)andExtendedUriBuilder.extensionMedia(String). You could get it in the same way as the default UriInfo, that measn annotate a field of this type with @Context.- See Also:
UriInfo
-
-
Method Summary
All Methods Instance Methods Abstract 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 anExtendedUriBuilder.ExtendedUriBuildergetRequestUriBuilder()Deprecated.Get the absolute request URI in the form of anExtendedUriBuilder.
-
-
-
Method Detail
-
getAbsolutePathBuilder
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 interfacejavax.ws.rs.core.UriInfo- 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
ExtendedUriBuilder getBaseUriBuilder()
Deprecated.Get the base URI of the application in the form of anExtendedUriBuilder. It also includes the extension of the current request.- Specified by:
getBaseUriBuilderin interfacejavax.ws.rs.core.UriInfo- 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
ExtendedUriBuilder getRequestUriBuilder()
Deprecated.Get the absolute request URI in the form of anExtendedUriBuilder. It also includes the extension of the current request.- Specified by:
getRequestUriBuilderin interfacejavax.ws.rs.core.UriInfo- 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
-
-