|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.smtpserver.urirbl.URIScanner
public class URIScanner
Constructor Summary | |
---|---|
URIScanner()
|
Method Summary | |
---|---|
protected static java.lang.String |
domainFromHost(java.lang.String host)
Extracts and returns the registrar domain portion of a host string. |
protected static java.lang.String |
hostFromUriStr(java.lang.String uriStr)
Extracts and returns the host portion of URI string. |
static java.util.HashSet |
scanContentForDomains(java.util.HashSet domains,
java.lang.CharSequence content)
Scans a character sequence for URIs. |
protected static java.util.HashSet |
scanContentForHosts(java.lang.CharSequence content)
Scans a character sequence for URIs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URIScanner()
Method Detail |
---|
public static java.util.HashSet scanContentForDomains(java.util.HashSet domains, java.lang.CharSequence content)
This function calls scanContentForHosts() to grab all the host strings. Then it calls domainFromHost() on each host string found to distill them to their basic "registrar" domains.
domains
- a HashSet to be populated with all domain strings found in
the contentcontent
- a character sequence to be scanned for URIs
protected static java.util.HashSet scanContentForHosts(java.lang.CharSequence content)
content
- a character sequence to be scanned for URIs
protected static java.lang.String hostFromUriStr(java.lang.String uriStr)
uriStr
- a string containing a URI
protected static java.lang.String domainFromHost(java.lang.String host)
host
- a string containing a host name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |