|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RetrieverStorage
Storage interface for the retriever module, allows the client of the RetrieverService to store downloaded resources in any suitable way.
| Method Summary | |
|---|---|
String |
maybeDownloadResource(String elementName,
String attributeName,
String resourceUri,
Attributes attributes)
Download the resource if the storage wants to do that, and if downloaded return the URI of the downloaded resource. |
void |
storeContent(String content)
Store the content that was retrieved and processed |
| Method Detail |
|---|
void storeContent(String content)
throws IOException,
RepositoryException
IOException
RepositoryException
String maybeDownloadResource(String elementName,
String attributeName,
String resourceUri,
Attributes attributes)
throws IOException,
RepositoryException
elementName - the html element that contains the URIattributeName - the html attribute that contains the URIresourceUri - the attribute value (absolute URL)attributes - the rest of the element's attributes
IOException
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||