org.tuckey.web.filters.urlrewrite
Class OutboundRule
java.lang.Object
org.tuckey.web.filters.urlrewrite.RuleBase
org.tuckey.web.filters.urlrewrite.OutboundRule
- All Implemented Interfaces:
- Runnable
public class OutboundRule
- extends RuleBase
Defines an outbound rule that can be run against a link in a page.
- Version:
- $Revision: 36 $ $Date: 2006-09-19 18:32:39 +1200 (Tue, 19 Sep 2006) $
- Author:
- Paul Tuckey
Methods inherited from class org.tuckey.web.filters.urlrewrite.RuleBase |
addCondition, addRun, addSetAttribute, destroy, getConditions, getErrors, getFrom, getFullDisplayName, getId, getMatchType, getName, getNote, getRuns, getSetAttributes, getTo, isEnabled, isFilter, isFromCaseSensitive, isLast, isMatchTypeWildcard, isNoSubstitution, isToContainsBackReference, isToContainsFunction, isToContainsVariable, isValid, matchesBase, setEnabled, setFrom, setFromCaseSensitive, setId, setMatchType, setName, setNote, setTo, setToLast |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutboundRule
public OutboundRule()
- Constructor.
execute
public RewrittenOutboundUrl execute(java.lang.String url,
javax.servlet.http.HttpServletRequest hsRequest,
javax.servlet.http.HttpServletResponse hsResponse)
throws java.lang.reflect.InvocationTargetException
- Execute this outbound rule.
- Throws:
java.lang.reflect.InvocationTargetException
initialise
public boolean initialise(javax.servlet.ServletContext servletContext)
- Will initialise the outbound rule.
- Overrides:
initialise
in class RuleBase
- Returns:
- true on success
addError
protected void addError(java.lang.String s)
- Overrides:
addError
in class RuleBase
getDisplayName
public java.lang.String getDisplayName()
- Overrides:
getDisplayName
in class RuleBase
isEncodeFirst
public boolean isEncodeFirst()
isEncodeToUrl
public boolean isEncodeToUrl()
setEncodeFirst
public void setEncodeFirst(boolean encodeFirst)
setEncodeToUrl
public void setEncodeToUrl(boolean encodeToUrl)