|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openprivacy.reptile.RelativizeContentParser
Given some input HTML, the resource URL of the HTML, we will take all ,
, etc links and make them full URLs (if they are partial)
Constructor Summary | |
RelativizeContentParser()
|
Method Summary | |
void |
addDependency(RelativizeDependency depend)
Add the given resource as a dependency of the current HTML file. |
java.lang.String |
expand(java.lang.String link)
Expand a link relavant to the current site. |
java.lang.String |
getBase()
Get the base of this URL. |
RelativizeDependency[] |
getDependencies()
|
java.lang.String |
getResource()
Get the value of resource . |
java.lang.String |
getSite()
Get the site for this resource. |
boolean |
isInvalidScheme(java.lang.String resource)
Return true if this is an invalid scheme and should be expanded (javascript, mailto, etc) |
java.lang.String |
relativize(java.lang.String content)
Used to fix relative links in HTML content so that everything is expanded. |
void |
setResource(java.lang.String resource)
Set the value of resource . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RelativizeContentParser()
Method Detail |
public java.lang.String getResource()
resource
.
public void setResource(java.lang.String resource)
resource
.
public RelativizeDependency[] getDependencies()
public java.lang.String relativize(java.lang.String content) throws java.lang.Exception
java.lang.Exception
public java.lang.String expand(java.lang.String link) throws java.lang.Exception
java.lang.Exception
public java.lang.String getBase()
public java.lang.String getSite()
public void addDependency(RelativizeDependency depend)
public boolean isInvalidScheme(java.lang.String resource)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |