Class SiteUrl

java.lang.Object
org.ametys.plugins.site.SiteUrl

public class SiteUrl extends Object
Represente a site access URL.
  • Constructor Details

    • SiteUrl

      public SiteUrl(String serverName, String serverPort, String serverPath)
      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

      public String getBaseServerPath(Request request)
      Get the site's base server path.
      Parameters:
      request - the request.
      Returns:
      the base site server path.