Uses of Class
org.apache.sling.api.uri.SlingUriBuilder
Packages that use SlingUriBuilder
-
Uses of SlingUriBuilder in org.apache.sling.api.uri
Methods in org.apache.sling.api.uri that return SlingUriBuilderModifier and TypeMethodDescription@NotNull SlingUriBuilderSlingUriBuilder.addQueryParameter(@NotNull String parameterName, @NotNull String value) Add a query parameter to the query of the URI.@NotNull SlingUriBuilderSlingUriBuilder.addSelector(@NotNull String selector) Add a selector to the URI.static @NotNull SlingUriBuilderSlingUriBuilder.create()Creates a builder without any URI parameters set.static @NotNull SlingUriBuilderSlingUriBuilder.createFrom(@NotNull URI uri, @Nullable ResourceResolver resourceResolver) Creates a builder from an arbitrary URI.static @NotNull SlingUriBuilderSlingUriBuilder.createFrom(@NotNull RequestPathInfo requestPathInfo) Creates a builder from a RequestPathInfo instance .static @NotNull SlingUriBuilderSlingUriBuilder.createFrom(@NotNull Resource resource) Creates a builder from a resource (only taking the resource path into account).static @NotNull SlingUriBuilderSlingUriBuilder.createFrom(@NotNull SlingHttpServletRequest request) Creates a builder from a request.static @NotNull SlingUriBuilderSlingUriBuilder.createFrom(@NotNull SlingUri slingUri) Creates a builder from another SlingUri (clone and modify use case).static @NotNull SlingUriBuilderSlingUriBuilder.parse(@NotNull String uriStr, @Nullable ResourceResolver resourceResolver) Creates a builder from an arbitrary URI string.@NotNull SlingUriBuilderSlingUriBuilder.rebaseResourcePath()Will rebase the URI based on the underlying resource structure.@NotNull SlingUriBuilderSlingUriBuilder.removeSchemeAndAuthority()Will remove scheme and authority (that is user info, host and port).@NotNull SlingUriBuilderSlingUriBuilder.removeSelector(@NotNull String selector) Remove a selector from the URI.@NotNull SlingUriBuilderSlingUriBuilder.setExtension(@Nullable String extension) Set the extension of the URI.@NotNull SlingUriBuilderSlingUriBuilder.setFragment(@Nullable String fragment) Set the fragment of the URI.@NotNull SlingUriBuilderSet the host of the URI.@NotNull SlingUriBuilderSet the path of the URI that contains a resource path and optionally path parameters, selectors, an extension and a suffix.@NotNull SlingUriBuilderSlingUriBuilder.setPathParameter(@NotNull String key, @NotNull String value) Set a path parameter to the URI.@NotNull SlingUriBuilderSlingUriBuilder.setPathParameters(@NotNull Map<String, String> pathParameters) Replaces all path parameters in the URI.@NotNull SlingUriBuilderSlingUriBuilder.setPort(int port) Set the port of the URI.@NotNull SlingUriBuilderSet the query of the URI.@NotNull SlingUriBuilderSlingUriBuilder.setQueryParameters(@NotNull Map<String, String> queryParameters) Replace all query parameters of the URL.@NotNull SlingUriBuilderSlingUriBuilder.setResourcePath(@Nullable String resourcePath) Set the resource path of the URI.@NotNull SlingUriBuilderSlingUriBuilder.setResourceResolver(ResourceResolver resourceResolver) Sets the resource resolver (required forRequestPathInfo.getSuffixResource()).@NotNull SlingUriBuilderSet the scheme of the URI.@NotNull SlingUriBuilderSlingUriBuilder.setSchemeSpecificPart(@Nullable String schemeSpecificPart) Set the scheme specific part of the URI.@NotNull SlingUriBuilderSlingUriBuilder.setSelectors(@Nullable String[] selectors) Set the selectors of the URI.@NotNull SlingUriBuilderSet the suffix of the URI.@NotNull SlingUriBuilderSlingUriBuilder.setUserInfo(@Nullable String userInfo) Set the user info of the URI.@NotNull SlingUriBuilderSlingUriBuilder.useSchemeAndAuthority(@NotNull URI uri) Will take over scheme and authority (user info, host and port) from provided URI.@NotNull SlingUriBuilderSlingUriBuilder.useSchemeAndAuthority(@NotNull SlingUri slingUri) Will take over scheme and authority (user info, host and port) from provided slingUri.Method parameters in org.apache.sling.api.uri with type arguments of type SlingUriBuilderModifier and TypeMethodDescriptiondefault @NotNull SlingUriSlingUri.adjust(@NotNull Consumer<SlingUriBuilder> builderConsumer) Shortcut to adjust Sling URIs, e.g.