public interface ExtendedUriInfo extends UriInfo
UriInfo extension returns UriBuilders
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 see
ExtendedUriBuilder.extension(String),
ExtendedUriBuilder.extensionLanguage(String) and
ExtendedUriBuilder.extensionMedia(String). You could get it in the
same way as the default UriInfo, that measn annotate a field of this type
with @Context.UriInfo| Modifier and Type | Method and Description |
|---|---|
ExtendedUriBuilder |
getAbsolutePathBuilder()
Get the absolute path of the request in the form of an
ExtendedUriBuilder. |
ExtendedUriBuilder |
getBaseUriBuilder()
Get the base URI of the application in the form of an
ExtendedUriBuilder. |
ExtendedUriBuilder |
getRequestUriBuilder()
Get the absolute request URI in the form of an
ExtendedUriBuilder
. |
getAbsolutePath, getBaseUri, getMatchedResources, getMatchedURIs, getMatchedURIs, getPath, getPath, getPathParameters, getPathParameters, getPathSegments, getPathSegments, getQueryParameters, getQueryParameters, getRequestUriExtendedUriBuilder getAbsolutePathBuilder()
ExtendedUriBuilder. This includes everything preceding the path
(host, port etc) but excludes query parameters. It also includes the
extension of the current request.getAbsolutePathBuilder in interface UriInfoIllegalStateException - if called outside the scope of a requestUriInfo.getAbsolutePathBuilder()ExtendedUriBuilder getBaseUriBuilder()
ExtendedUriBuilder. It also includes the extension of the current
request.getBaseUriBuilder in interface UriInfoUriInfo.getBaseUriBuilder()ExtendedUriBuilder getRequestUriBuilder()
ExtendedUriBuilder
. It also includes the extension of the current request.getRequestUriBuilder in interface UriInfoIllegalStateException - if called outside the scope of a requestCopyright © 2005-2017 Restlet.