Package | Description |
---|---|
org.apache.sling.api.uri |
Modifier and Type | Method and Description |
---|---|
@NotNull SlingUriBuilder |
SlingUriBuilder.addQueryParameter(@NotNull java.lang.String parameterName,
@NotNull java.lang.String value)
Add a query parameter to the query of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.addSelector(@NotNull java.lang.String selector)
Add a selector to the URI.
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.create()
Creates a builder without any URI parameters set.
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull RequestPathInfo requestPathInfo)
Creates a builder from a RequestPathInfo instance .
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull Resource resource)
Creates a builder from a resource (only taking the resource path into account).
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull SlingHttpServletRequest request)
Creates a builder from a request.
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull SlingUri slingUri)
Creates a builder from another SlingUri (clone and modify use case).
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.createFrom(@NotNull java.net.URI uri,
@Nullable ResourceResolver resourceResolver)
Creates a builder from an arbitrary URI.
|
static @NotNull SlingUriBuilder |
SlingUriBuilder.parse(@NotNull java.lang.String uriStr,
@Nullable ResourceResolver resourceResolver)
Creates a builder from an arbitrary URI string.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.rebaseResourcePath()
Will rebase the uri based on the underlying resource structure.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.removeSchemeAndAuthority()
Will remove scheme and authority (that is user info, host and port).
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setExtension(@Nullable java.lang.String extension)
Set the extension of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setFragment(@Nullable java.lang.String fragment)
Set the fragment of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setHost(@Nullable java.lang.String host)
Set the host of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setPath(@Nullable java.lang.String path)
Set the path of the URI that contains a resource path and optionally path parameters, selectors, an extension and a suffix.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setPathParameter(@NotNull java.lang.String key,
@NotNull java.lang.String value)
Set a path parameter to the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setPathParameters(@NotNull java.util.Map<java.lang.String,java.lang.String> pathParameters)
Replaces all path parameters in the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setPort(int port)
Set the port of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setQuery(@Nullable java.lang.String query)
Set the query of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setQueryParameters(@NotNull java.util.Map<java.lang.String,java.lang.String> queryParameters)
Replace all query parameters of the URL.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setResourcePath(@Nullable java.lang.String resourcePath)
Set the resource path of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setResourceResolver(ResourceResolver resourceResolver)
Sets the resource resolver (required for
RequestPathInfo.getSuffixResource() ). |
@NotNull SlingUriBuilder |
SlingUriBuilder.setScheme(@Nullable java.lang.String scheme)
Set the scheme of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setSchemeSpecificPart(@Nullable java.lang.String schemeSpecificPart)
Set the scheme specific part of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setSelectors(@Nullable java.lang.String[] selectors)
Set the selectors of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setSuffix(@Nullable java.lang.String suffix)
Set the suffix of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.setUserInfo(@Nullable java.lang.String userInfo)
Set the user info of the URI.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.useSchemeAndAuthority(@NotNull SlingUri slingUri)
Will take over scheme and authority (user info, host and port) from provided slingUri.
|
@NotNull SlingUriBuilder |
SlingUriBuilder.useSchemeAndAuthority(@NotNull java.net.URI uri)
Will take over scheme and authority (user info, host and port) from provided URI.
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.