All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.www.protocol.http.proxy.Rule
java.lang.Object
|
+----org.w3c.www.protocol.http.proxy.Rule
- public class Rule
- extends Object
- implements Comparable
-
names
-
-
Rule()
- Empty constructor for dynamic instantiation.
-
apply(Request)
- Apply given rule to the given request.
-
createRule(String[], int, int)
- Create a rule, given an array of String.
-
getHost()
-
-
getRuleArgs()
-
-
getRuleName()
-
-
getRulesName()
-
-
greaterThan(Comparable)
-
-
initialize(String[], int, int)
- Initialize the rule with given set of tokens.
-
toString()
-
-
writeRule(DataOutputStream)
-
names
protected static String names[]
Rule
public Rule()
- Empty constructor for dynamic instantiation.
toString
public String toString()
- Overrides:
- toString in class Object
greaterThan
public boolean greaterThan(Comparable comp)
writeRule
public void writeRule(DataOutputStream out) throws IOException
getHost
public String getHost()
getRuleName
public String getRuleName()
getRuleArgs
public String getRuleArgs()
initialize
protected void initialize(String tokens[],
int offset,
int length) throws RuleParserException
- Initialize the rule with given set of tokens.
- Parameters:
- tokens - The token array.
- offset - Offset within above array, of tokens to initialize from.
- length - Total number of tokens in above array.
- Throws: RuleParserException
- If the rule couldn't be initialized
from given tokens.
createRule
public static Rule createRule(String tokens[],
int offset,
int length) throws RuleParserException
- Create a rule, given an array of String.
- Parameters:
- tokens - Parsed tokens, as a String array.
- offset - Offset of the rule tokens within above array.
- length - Total number of available tokens.
- Throws: RuleParserException
- If no rule could be created out of given
tokens.
getRulesName
public static String[] getRulesName()
apply
public Reply apply(Request request)
- Apply given rule to the given request.
- Parameters:
- request - The request to apply the rule to.
All Packages Class Hierarchy This Package Previous Next Index