Class GroovyRedirectRule
java.lang.Object
de.uplanet.lucy.server.urlredirect.scripting.groovy.GroovyRedirectRule
- All Implemented Interfaces:
de.uplanet.lucy.server.urlredirect.IRedirectRule
,Cloneable
-
Method Summary
Modifier and TypeMethodDescriptiongetToUrl()
boolean
Check if this redirect rule belongs to an application, i.e.void
setAppGuid
(String p_strAppGuid) void
setFromUrl
(String p_strFromUrl) Set the URL matched by this rule.void
Set the target URL for this rule.toString()
-
Method Details
-
getFromUrl
- Specified by:
getFromUrl
in interfacede.uplanet.lucy.server.urlredirect.IRedirectRule
-
setFromUrl
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
- Specified by:
getToUrl
in interfacede.uplanet.lucy.server.urlredirect.IRedirectRule
-
setToUrl
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, orfalse
otherwise.
-
getAppGuid
- Specified by:
getAppGuid
in interfacede.uplanet.lucy.server.urlredirect.IRedirectRule
-
setAppGuid
-
toString
-