com.day.cq.wcm.siteimporter.resource
Class ImporterResource
java.lang.Object
com.day.cq.wcm.siteimporter.resource.ImporterResource
- Direct Known Subclasses:
- BinaryImporterResource, CssImporterResource, HtmlImporterResource, JsImporterResource
public abstract class ImporterResource
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
location
protected URL location
content
protected String content
contentType
protected String contentType
downloadLocation
protected String downloadLocation
references
protected ArrayList<ReferenceLocation> references
ctx
protected ImporterContext ctx
NULL_LINE_PROCESSOR
public static final ImporterResource.LineProcessor NULL_LINE_PROCESSOR
ImporterResource
public ImporterResource(URL location,
ImporterContext ctx)
getContext
public ImporterContext getContext()
isDownloaded
public boolean isDownloaded()
getDownloadLocation
public String getDownloadLocation()
setDownloadLocation
public void setDownloadLocation(String downloadLocation)
getLocation
public URL getLocation()
getMimeType
public String getMimeType()
throws IOException
- Throws:
IOException
getCharset
public String getCharset()
throws IOException
- Throws:
IOException
getBasePath
public String getBasePath()
getDownloadStream
public InputStream getDownloadStream()
throws IOException
- Throws:
IOException
getExternalReferences
public abstract ArrayList<ReferenceLocation> getExternalReferences()
getContent
public String getContent()
throws IOException
- Throws:
IOException
getContent
public String getContent(ImporterResource.LineProcessor lineProcessor)
throws IOException
- Throws:
IOException
reload
public String reload()
throws IOException
- Throws:
IOException
reload
public String reload(ImporterResource.LineProcessor lineProcessor)
throws IOException
- Throws:
IOException
toAbsoluteReference
public URL toAbsoluteReference(String original)
throws MalformedURLException
- Throws:
MalformedURLException
triggerAction
public abstract Object triggerAction(ImporterResourceVisitor is)
Copyright © 2011-2012 Adobe Systems Incorporated. All Rights Reserved.