Package org.ametys.plugins.site
Class SiteUrl
- java.lang.Object
-
- org.ametys.plugins.site.SiteUrl
-
-
Field Summary
Fields Modifier and Type Field Description private String
_serverName
private String
_serverPath
private String
_serverPort
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseServerPath(Request request)
Get the site's base server path.String
getServerName()
Returns the front-office server name.String
getServerPath()
Returns the front-office server context path.String
getServerPort()
Returns the front-office server port.
-
-
-
Field Detail
-
_serverName
private String _serverName
-
_serverPort
private String _serverPort
-
_serverPath
private String _serverPath
-
-
Method Detail
-
getServerName
public String getServerName()
Returns the front-office server name.- Returns:
- the front-office server name.
-
getServerPort
public String getServerPort()
Returns the front-office server port.- Returns:
- the front-office server port.
-
getServerPath
public String getServerPath()
Returns the front-office server context path.- Returns:
- the front-office server context path.
-
getBaseServerPath
public String getBaseServerPath(Request request)
Get the site's base server path.- Parameters:
request
- the request.- Returns:
- the base site server path.
-
-