org.apache.sling.installer.core.impl
Class InternalResource

java.lang.Object
  extended by org.apache.sling.installer.api.InstallableResource
      extended by org.apache.sling.installer.core.impl.InternalResource

public class InternalResource
extends InstallableResource

Internal resource is a private data object which wraps an installable resource and is used to create a registered resource. An internal resource has always: - a resource type - a digest


Field Summary
 
Fields inherited from class org.apache.sling.installer.api.InstallableResource
BUNDLE_START_LEVEL, DEFAULT_PRIORITY, TYPE_BUNDLE, TYPE_CONFIG, TYPE_FILE, TYPE_PROPERTIES
 
Method Summary
static InternalResource create(String scheme, InstallableResource resource)
          Create an internal resource.
 Dictionary<String,Object> getPrivateCopyOfDictionary()
          Copy given Dictionary
 File getPrivateCopyOfFile()
          Copy the given file and return it.
 String getURL()
          The unique url of the resource.
 
Methods inherited from class org.apache.sling.installer.api.InstallableResource
getDictionary, getDigest, getId, getInputStream, getPriority, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static InternalResource create(String scheme,
                                      InstallableResource resource)
                               throws IOException
Create an internal resource.

Throws:
IOException - if something is wrong

getURL

public String getURL()
The unique url of the resource.


getPrivateCopyOfDictionary

public Dictionary<String,Object> getPrivateCopyOfDictionary()
Copy given Dictionary


getPrivateCopyOfFile

public File getPrivateCopyOfFile()
                          throws IOException
Copy the given file and return it.

Throws:
IOException


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.