com.day.cq.wcm.siteimporter.resource
Class ImporterResource

java.lang.Object
  extended by com.day.cq.wcm.siteimporter.resource.ImporterResource
Direct Known Subclasses:
BinaryImporterResource, CssImporterResource, HtmlImporterResource, JsImporterResource

public abstract class ImporterResource
extends Object


Nested Class Summary
static interface ImporterResource.LineProcessor
           
 
Field Summary
protected  String content
           
protected  String contentType
           
protected  ImporterContext ctx
           
protected  String downloadLocation
           
protected  URL location
           
static ImporterResource.LineProcessor NULL_LINE_PROCESSOR
           
protected  ArrayList<ReferenceLocation> references
           
 
Constructor Summary
ImporterResource(URL location, ImporterContext ctx)
           
 
Method Summary
 String getBasePath()
           
 String getCharset()
           
 String getContent()
           
 String getContent(ImporterResource.LineProcessor lineProcessor)
           
 ImporterContext getContext()
           
 String getDownloadLocation()
           
 InputStream getDownloadStream()
           
abstract  ArrayList<ReferenceLocation> getExternalReferences()
           
 URL getLocation()
           
 String getMimeType()
           
 boolean isDownloaded()
           
 String reload()
           
 String reload(ImporterResource.LineProcessor lineProcessor)
           
 void setDownloadLocation(String downloadLocation)
           
 URL toAbsoluteReference(String original)
           
abstract  Object triggerAction(ImporterResourceVisitor is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ImporterResource

public ImporterResource(URL location,
                        ImporterContext ctx)
Method Detail

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.