|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.regain.crawler.config.UrlMatcherResult
net.sf.regain.crawler.config.PrefixUrlMatcher
public class PrefixUrlMatcher
A UrlMatcher that matches URLs that start with a certain prefix.
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
mLog
The logger for this class. |
private String |
mUrlPrefix
The prefix a URL must start with in order to be matched by this matcher. |
Constructor Summary | |
---|---|
PrefixUrlMatcher(String urlPrefix,
boolean shouldBeParsed,
boolean shouldBeIndexed)
Creates a new instance of PrefixUrlMatcher. |
Method Summary | |
---|---|
boolean |
matches(String url)
Checks whether a URL matches to the rules of this matcher. |
String |
toString()
Gets a String representation of this UrlMatcher. |
Methods inherited from class net.sf.regain.crawler.config.UrlMatcherResult |
---|
getShouldBeIndexed, getShouldBeParsed, setShouldBeIndexed, setShouldBeParsed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger mLog
private String mUrlPrefix
Constructor Detail |
---|
public PrefixUrlMatcher(String urlPrefix, boolean shouldBeParsed, boolean shouldBeIndexed)
urlPrefix
- The prefix a URL must start with to be matched by this
matcher.Method Detail |
---|
public boolean matches(String url)
matches
in interface UrlMatcher
matches
in class UrlMatcherResult
url
- The URL to check.
public String toString()
toString
in class Object
|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |