org.tuckey.web.filters.urlrewrite
Class ClassRule
java.lang.Object
org.tuckey.web.filters.urlrewrite.ClassRule
- All Implemented Interfaces:
- Rule
public class ClassRule
- extends Object
- implements Rule
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassRule
public ClassRule()
matches
public RewrittenUrl matches(String url,
javax.servlet.http.HttpServletRequest hsRequest,
javax.servlet.http.HttpServletResponse hsResponse,
RuleChain chain)
throws IOException,
javax.servlet.ServletException
- Description copied from interface:
Rule
- Will run the rule against the uri and perform action required will return false is not matched
otherwise true.
- Specified by:
matches in interface Rule
- Returns:
- String of the rewritten url or the same as the url passed in if no match was made
- Throws:
IOException
javax.servlet.ServletException
matches
public RewrittenUrl matches(String url,
javax.servlet.http.HttpServletRequest hsRequest,
javax.servlet.http.HttpServletResponse hsResponse)
throws javax.servlet.ServletException,
IOException
- Specified by:
matches in interface Rule
- Throws:
javax.servlet.ServletException
IOException
initialise
public boolean initialise(javax.servlet.ServletContext context)
- Description copied from interface:
Rule
- Will initialise the rule.
- Specified by:
initialise in interface Rule
- Returns:
- true on success
destroy
public void destroy()
- Specified by:
destroy in interface Rule
getName
public String getName()
- Specified by:
getName in interface Rule
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface Rule
isLast
public boolean isLast()
- Specified by:
isLast in interface Rule
setLast
public void setLast(boolean last)
setClassStr
public void setClassStr(String classStr)
getClassStr
public String getClassStr()
setMethodStr
public void setMethodStr(String methodStr)
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
setId
public void setId(int i)
- Specified by:
setId in interface Rule
getId
public int getId()
- Specified by:
getId in interface Rule
isValid
public boolean isValid()
- Specified by:
isValid in interface Rule
isFilter
public boolean isFilter()
- Specified by:
isFilter in interface Rule
getErrors
public List getErrors()
- Description copied from interface:
Rule
- List of strings for all errors.
- Specified by:
getErrors in interface Rule
Copyright © 2001-2012 Paul Tuckey. All Rights Reserved.