public class RequestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getJsonExportURL(@NotNull String url)
Returns a model URL for the given page URL
|
static String |
getPageJsonExportUrl(@NotNull org.apache.sling.api.SlingHttpServletRequest slingRequest,
com.day.cq.wcm.api.Page page)
Returns a model URL for the given page URL
|
static @NotNull String |
getURL(@NotNull org.apache.sling.api.SlingHttpServletRequest request,
@NotNull com.day.cq.wcm.api.Page page)
Given a
Page, this method returns the correct URL, taking into account that the provided page might provide a vanity URL |
@NotNull public static @NotNull String getURL(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull @NotNull com.day.cq.wcm.api.Page page)
Page, this method returns the correct URL, taking into account that the provided page might provide a vanity URLrequest - The current request, used to determine the server's context pathpage - The pagePagepublic static String getJsonExportURL(@NotNull @NotNull String url)
url - Page URLpublic static String getPageJsonExportUrl(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest slingRequest, @NotNull com.day.cq.wcm.api.Page page)
slingRequest - The current servlet requestpage - Page for which to get the model URLCopyright © 2019. All rights reserved.