Package org.ametys.plugins.site
Class SiteUrl
java.lang.Object
org.ametys.plugins.site.SiteUrl
Represente a site access URL.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBaseServerPath
(Request request) Get the site's base server path.Returns the front-office server name.Returns the front-office server context path.Returns the front-office server port.
-
Constructor Details
-
SiteUrl
Cosntructor.- Parameters:
serverName
- the front-office server name.serverPort
- the front-office server port.serverPath
- the front-office server context path.
-
-
Method Details
-
getServerName
Returns the front-office server name.- Returns:
- the front-office server name.
-
getServerPort
Returns the front-office server port.- Returns:
- the front-office server port.
-
getServerPath
Returns the front-office server context path.- Returns:
- the front-office server context path.
-
getBaseServerPath
Get the site's base server path.- Parameters:
request
- the request.- Returns:
- the base site server path.
-