| 
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
public class UrlMatcherResult
An UrlMatcherResult that implements the UrlMatcher interface. This URLMatcher holds only the result of another URLMatcher.
| Field Summary | |
|---|---|
private  boolean | 
mMatches
The result of the matching.  | 
private  boolean | 
mShouldBeIndexed
The content indexing flag  | 
private  boolean | 
mShouldBeParsed
The link extraction flag  | 
| Constructor Summary | |
|---|---|
UrlMatcherResult(boolean shouldBeParsed,
                 boolean shouldBeIndexed)
Creates a new instance of UrlMatcher.  | 
|
| Method Summary | |
|---|---|
 boolean | 
getShouldBeIndexed()
Gets a flag whether the content should be indexed.  | 
 boolean | 
getShouldBeParsed()
Gets a flag whether links should be extracted from the content  | 
 boolean | 
matches(String url)
Checks whether a URL matches to the rules of this matcher.  | 
 void | 
setShouldBeIndexed(boolean shouldBeIndexed)
Sets a flag whether the content should be indexed.  | 
 void | 
setShouldBeParsed(boolean shouldBeParsed)
Sets a flag whether links should be extracted from the content  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private boolean mShouldBeParsed
private boolean mShouldBeIndexed
private boolean mMatches
| Constructor Detail | 
|---|
public UrlMatcherResult(boolean shouldBeParsed,
                        boolean shouldBeIndexed)
shouldBeParsed, - whether from a match for matches(url) possibly inclosed links should be extracted.shouldBeIndexed - whether from a match for matches(url) the content from the URL should be indexed.| Method Detail | 
|---|
public boolean matches(String url)
matches in interface UrlMatcherurl - The URL to check.
public boolean getShouldBeParsed()
getShouldBeParsed in interface UrlMatcherpublic boolean getShouldBeIndexed()
getShouldBeIndexed in interface UrlMatcherpublic void setShouldBeParsed(boolean shouldBeParsed)
setShouldBeParsed in interface UrlMatcherpublic void setShouldBeIndexed(boolean shouldBeIndexed)
setShouldBeIndexed in interface UrlMatcher
  | 
Regain 2.1.0-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||