Class WebsiteProcessActionHandler.BaseURL

    • Method Detail

      • setId

        public void setId​(String id)
      • getId

        public String getId()
      • setDomain

        public void setDomain​(String domain)
      • getDomain

        public String getDomain()
        Description copied from interface: IWebsiteBaseURL
        Returns the domain of this website base URL.
        Specified by:
        getDomain in interface IWebsiteBaseURL
        Returns:
        the domain. Example: my.site.com
      • setPort

        public void setPort​(Integer port)
      • getPort

        public int getPort()
        Description copied from interface: IWebsiteBaseURL
        Returns the port of this website base URL.
        Specified by:
        getPort in interface IWebsiteBaseURL
        Returns:
        the port of this website base URL.
      • setPath

        public void setPath​(String path)
      • getPath

        public String getPath()
        Description copied from interface: IWebsiteBaseURL
        Returns the path part of this website base URL.
        Specified by:
        getPath in interface IWebsiteBaseURL
        Returns:
        the path path of this website base URL, or an empty string if it has no path. Never returns null.
      • toString

        public String toString()
        Description copied from interface: IWebsiteBaseURL
        Returns a string representation of this base URL.

        The purpose of the returned string is for simple display of this base URL and may not be compatible to any format.

        Specified by:
        toString in interface IWebsiteBaseURL
        Overrides:
        toString in class Object
        Returns:
        this base URL as a string.
      • toString

        public String toString​(boolean includePort)
      • getWebsite

        public IWebsite getWebsite()
        Description copied from interface: IWebsiteBaseURL
        Returns the website this base URL belongs to.
        Specified by:
        getWebsite in interface IWebsiteBaseURL
        Returns:
        the website this base URL belongs to.
      • matches

        public boolean matches​(HttpServletRequest request)
        Description copied from interface: IWebsiteBaseURL
        Returns whether a HttpServletRequest destination matches this base URL.

        The request is considered as matching this base URL if its destination corresponds to any resource inside it.

        Specified by:
        matches in interface IWebsiteBaseURL
        Parameters:
        request - the request.
        Returns:
        true if the request matches this base URL, false otherwise.
      • toURI

        public URI toURI​(boolean secure)
        Description copied from interface: IWebsiteBaseURL
        Returns this base URL as a URI object.
        Specified by:
        toURI in interface IWebsiteBaseURL
        Parameters:
        secure - whether the URI returned is to use a secure schema or not.
        Returns:
        the URI.