|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oss.net.pstream.rewrite.RewriteStep | +--oss.net.pstream.rewrite.RewriteCondition
A rewrite condition is a rewrite step which decides if the rewrite steps which follow it should be executed.
Title:
Description:
Copyright: Copyright (c) 2002
Company:
Field Summary | |
protected boolean |
_case_sensitive
Defines if this condition should be case-sensitive. |
static char |
NC_FLAG
|
Fields inherited from class oss.net.pstream.rewrite.RewriteStep |
REWRITE_CONDITION, REWRITE_RULE |
Constructor Summary | |
RewriteCondition(java.lang.String Name,
java.lang.String Flags,
boolean Debug)
The standard constructor. |
Method Summary | |
boolean |
getFlag(char Flag)
|
org.apache.oro.text.regex.MatchResult |
getLastResult()
Returns the result last returned by this condition. |
java.lang.String |
getName()
|
int |
getType()
|
RewriteVariableHandler |
getVariableHandler()
|
void |
init(RewriteCondition PreviousCondition,
RewriteRule PreviousRule,
PortletStreamParameters Params)
Initializes this condition. |
boolean |
isPostFetch()
Returns true if and only if this condition contains postfetch variables. |
boolean |
isValid()
|
void |
reset()
|
void |
setFlag(char Flag)
|
void |
setFlags(java.lang.String FlagTokens)
|
void |
setPatternString(java.lang.String PatternString)
Sets the regular expression pattern this condition will search with. |
void |
setSearchString(java.lang.String SearchString)
Sets the value of the string this condition is to search. |
void |
setTarget(RewriteVariableHandler TargetHandler)
Rewrite conditions don't actually do anything to/with the target, but rather handle their own target (which can be the rewrite target if the %{REWRITE_TARGET} variable is specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char NC_FLAG
protected boolean _case_sensitive
Constructor Detail |
public RewriteCondition(java.lang.String Name, java.lang.String Flags, boolean Debug) throws RewriteException
Name
- the Name of this step.Flags
- the flags set for this condition.Method Detail |
public org.apache.oro.text.regex.MatchResult getLastResult() throws RewriteException
getLastResult
in class RewriteStep
RewriteException
public boolean isPostFetch()
isPostFetch
in class RewriteStep
public void setSearchString(java.lang.String SearchString) throws RewriteException
SearchString
- A string to be searched.
RewriteException
public void setPatternString(java.lang.String PatternString) throws RewriteException
setPatternString
in class RewriteStep
RewriteException
public void init(RewriteCondition PreviousCondition, RewriteRule PreviousRule, PortletStreamParameters Params) throws RewriteException
init
in class RewriteStep
PreviousCondition
- the previous condition to this condition. Can be null.PreviousRule
- the last executed rule before this condition. Can be null.Params
- the parameters of the streamer.
RewriteException
public void reset()
reset
in class RewriteStep
public boolean isValid() throws RewriteException
RewriteException
public RewriteVariableHandler getVariableHandler()
getVariableHandler
in class RewriteStep
public int getType()
getType
in class RewriteStep
public java.lang.String getName()
getName
in class RewriteStep
public boolean getFlag(char Flag) throws RewriteException
RewriteException
public void setFlag(char Flag) throws RewriteException
RewriteException
public void setTarget(RewriteVariableHandler TargetHandler)
setTarget
in class RewriteStep
public void setFlags(java.lang.String FlagTokens) throws RewriteException
RewriteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |