Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.webapp.balancer.rules
Class URLStringMatchRule  view URLStringMatchRule download URLStringMatchRule.java

java.lang.Object
  extended byorg.apache.webapp.balancer.rules.BaseRule
      extended byorg.apache.webapp.balancer.rules.URLStringMatchRule
All Implemented Interfaces:
org.apache.webapp.balancer.Rule

public class URLStringMatchRule
extends BaseRule

This rule looks for a specific string in the URL for a positive match.


Field Summary
private  java.lang.String targetString
          The target string that must be present in the URL, may not be null.
 
Fields inherited from class org.apache.webapp.balancer.rules.BaseRule
 
Constructor Summary
URLStringMatchRule()
           
 
Method Summary
protected  java.lang.String getTargetString()
          Returns the target string that must be present in the URL.
 boolean matches(javax.servlet.http.HttpServletRequest request)
          Determine if the given request matches the rule.
 void setTargetString(java.lang.String theTargetString)
          Sets the target string that must be present in the URL.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class org.apache.webapp.balancer.rules.BaseRule
getName, getRedirectUrl, setName, setRedirectUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targetString

private java.lang.String targetString
The target string that must be present in the URL, may not be null.

Constructor Detail

URLStringMatchRule

public URLStringMatchRule()
Method Detail

setTargetString

public void setTargetString(java.lang.String theTargetString)
Sets the target string that must be present in the URL.


getTargetString

protected java.lang.String getTargetString()
Returns the target string that must be present in the URL.


matches

public boolean matches(javax.servlet.http.HttpServletRequest request)
Description copied from interface: org.apache.webapp.balancer.Rule
Determine if the given request matches the rule.

Specified by:
matches in interface org.apache.webapp.balancer.Rule
Specified by:
matches in class BaseRule

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class BaseRule