|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.feedparser.locate.ResourceExpander
public class ResourceExpander
Field Summary | |
---|---|
protected static Pattern |
schemePattern
A regexp to determine if a URL has a scheme, such as "http://foo.com". |
Constructor Summary | |
---|---|
ResourceExpander()
|
Method Summary | |
---|---|
static String |
expand(String resource,
String link)
Expand a link relavant to the current site. |
static String |
getBase(String resource)
Get the base of this URL. |
static String |
getDomain(String resource)
Given a URL get the domain name. |
static String |
getSite(String resource)
Get the site for this resource. |
static boolean |
hasScheme(String resource)
Determines if the given resource has a scheme. |
static boolean |
isExpanded(String resource)
Return true if the given link is ALREADY relativized.. |
static boolean |
isValidScheme(String resource)
Return true if this is an valid scheme and should be expanded. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Pattern schemePattern
Constructor Detail |
---|
public ResourceExpander()
Method Detail |
---|
public static String expand(String resource, String link)
resource
- The absolute base URL that will be used to expand the
link, such as "http://www.codinginparadise.org".link
- The link to possibly expand, such as "/index.rdf" or
"http://www.somehost.com/somepage.html".public static boolean isExpanded(String resource)
public static boolean isValidScheme(String resource)
public static boolean hasScheme(String resource)
public static String getSite(String resource)
public static String getDomain(String resource)
public static String getBase(String resource)
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |