Class GroovyRedirectRule

  • All Implemented Interfaces:
    de.uplanet.lucy.server.urlredirect.IRedirectRule, Cloneable

    public final class GroovyRedirectRule
    extends Object
    implements de.uplanet.lucy.server.urlredirect.IRedirectRule, Cloneable
    • Method Detail

      • getFromUrl

        public String getFromUrl()
        Specified by:
        getFromUrl in interface de.uplanet.lucy.server.urlredirect.IRedirectRule
      • setFromUrl

        public void setFromUrl​(String p_strFromUrl)
        Set the URL matched by this rule.

        This method validates input.

        The URL must not be absolute. If percent encoding (RFC 3986) is used it must use uppercase hexadecimal digits.

        Parameters:
        p_strFromUrl - The matched URL.
      • getToUrl

        public String getToUrl()
        Specified by:
        getToUrl in interface de.uplanet.lucy.server.urlredirect.IRedirectRule
      • setToUrl

        public void setToUrl​(String p_strToUrl)
        Set the target URL for this rule.

        This method validates input.

        If percent encoding (RFC 3986) is used it must use uppercase hexadecimal digits.

        Parameters:
        p_strToUrl - The target URL.
      • hasAppGuid

        public boolean hasAppGuid()
        Check if this redirect rule belongs to an application, i.e. if it has an application GUID attribute.
        Returns:
        true if this rule has an application GUID, or false otherwise.
      • getAppGuid

        public String getAppGuid()
        Specified by:
        getAppGuid in interface de.uplanet.lucy.server.urlredirect.IRedirectRule
      • setAppGuid

        public void setAppGuid​(String p_strAppGuid)