Class GroovyRedirectRule
- java.lang.Object
-
- de.uplanet.lucy.server.urlredirect.scripting.groovy.GroovyRedirectRule
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAppGuid()
String
getFromUrl()
String
getToUrl()
boolean
hasAppGuid()
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
setToUrl(String p_strToUrl)
Set the target URL for this rule.String
toString()
-
-
-
Method Detail
-
getFromUrl
public String getFromUrl()
- Specified by:
getFromUrl
in interfacede.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 interfacede.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, orfalse
otherwise.
-
getAppGuid
public String getAppGuid()
- Specified by:
getAppGuid
in interfacede.uplanet.lucy.server.urlredirect.IRedirectRule
-
setAppGuid
public void setAppGuid(String p_strAppGuid)
-
-