public class PortletUrlRenderer extends UrlRenderer
UrlRenderer for Portlet Applications.It corrects the base Url. All the generated URLs will be relative to this Url.
The base Url depends on the lifecycle phase of the current portlet request.
Request.getUrl().
Request.getClientUrl(). Every Ajax request to the portal is a RESOURCE request and the
comments of the Request.getClientUrl() method full explain the reasons that this url must
be the base url during this phase.
It overrides the renderContextRelativeUrl(String) method in order to give the capability
to wicket portlets to serve static and context-relative resources.
| Constructor and Description |
|---|
PortletUrlRenderer(Request request) |
| Modifier and Type | Method and Description |
|---|---|
String |
renderContextRelativeUrl(String url) |
String |
renderUrl(Url url)
Renders the Url
|
getBaseUrl, renderFullUrl, renderRelativeUrl, resolveHost, resolvePort, resolveProtocol, setBaseUrl, shouldRenderAsFullpublic PortletUrlRenderer(Request request)
request - public String renderContextRelativeUrl(String url)
renderContextRelativeUrl in class UrlRendererpublic String renderUrl(Url url)
renderUrl in class UrlRendererurl - Copyright © 2020. All rights reserved.