Class SiteUrl


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

      • 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 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.