public class AbsoluteLinkRenderer extends DefaultLinkRenderer
DefaultLinkRenderer
. In addition, the scheme, server and port
may be changed (this may be appropriate when switching between secure and insecure portions of an
application).SHARED_INSTANCE
Constructor and Description |
---|
AbsoluteLinkRenderer() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
constructURL(ILinkComponent component,
IRequestCycle cycle)
Converts the EngineServiceLink into a URI or URL.
|
int |
getPort() |
java.lang.String |
getScheme() |
java.lang.String |
getServerName() |
void |
setPort(int port)
Used to override the port in the final URL, if specified.
|
void |
setScheme(java.lang.String scheme)
Used to override the scheme in the final URL, if specified.
|
void |
setServerName(java.lang.String serverName)
Used to override the server name in the final URL, if specified.
|
afterBodyRender, beforeBodyRender, getElement, getHasBody, getTargetAttribute, getUrlAttribute, renderLink
public AbsoluteLinkRenderer()
public int getPort()
public java.lang.String getScheme()
public java.lang.String getServerName()
public void setPort(int port)
request
is used (typically, the
value 80).public void setScheme(java.lang.String scheme)
request
is used (typically,
http
).public void setServerName(java.lang.String serverName)
request
is used.protected java.lang.String constructURL(ILinkComponent component, IRequestCycle cycle)
DefaultLinkRenderer
ILink.getURL(String, String, int, String, boolean)
.constructURL
in class DefaultLinkRenderer