|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.installer.core.impl.RegisteredResourceImpl
public class RegisteredResourceImpl
Implementation of the registered resource
Method Summary | |
---|---|
void |
cleanup()
Clean up used data files. |
TaskResource |
clone(TransformationResult transformationResult)
Create a new resource with updated information |
static int |
compare(TaskResource a,
TaskResource b)
Compare resources. |
int |
compareTo(RegisteredResourceImpl b)
|
static RegisteredResourceImpl |
create(InternalResource input)
Try to create a registered resource. |
boolean |
equals(Object obj)
|
Object |
getAttribute(String key)
Get the value of an attribute. |
Dictionary<String,Object> |
getDictionary()
Return this resource's dictionary. |
String |
getDigest()
Return this resource's digest. |
String |
getEntityId()
Return the identifier of the OSGi "entity" that this resource represents, for example "bundle:SID" where SID is the bundle's symbolic ID, or "config:PID" where PID is config's PID. |
InputStream |
getInputStream()
Return an input stream with the data of this resource. |
long |
getLastChange()
When did the last change happen? |
int |
getPriority()
Return the priority of this resource. |
String |
getScheme()
Return the scheme from where the artifact is orginated. |
ResourceState |
getState()
Get the current state of the resource. |
Object |
getTemporaryAttribute(String key)
Get the value of a temporary attribute. |
String |
getType()
Return the type of this resource. |
String |
getURL()
Return this data's url. |
int |
hashCode()
|
void |
setAttribute(String key,
Object value)
Set the value of an attribute. |
void |
setState(ResourceState s)
Set the state for the resource. |
void |
setTemporaryAttribute(String key,
Object value)
Set the value of a temporary attribute. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RegisteredResourceImpl create(InternalResource input) throws IOException
IOException
public String toString()
toString
in class Object
public void cleanup()
public String getURL()
RegisteredResource
RegisteredResource.getScheme()
followed by a colon, followed by a unique identifier of
the resource within the providers space..
getURL
in interface RegisteredResource
RegisteredResource.getURL()
public InputStream getInputStream() throws IOException
RegisteredResource
getInputStream
in interface RegisteredResource
IOException
RegisteredResource.getInputStream()
public Dictionary<String,Object> getDictionary()
RegisteredResource
getDictionary
in interface RegisteredResource
RegisteredResource.getDictionary()
public String getDigest()
RegisteredResource
getDigest
in interface RegisteredResource
RegisteredResource.getDigest()
public String getType()
RegisteredResource
getType
in interface RegisteredResource
RegisteredResource.getType()
public String getEntityId()
RegisteredResource
getEntityId
in interface RegisteredResource
RegisteredResource.getEntityId()
public Object getAttribute(String key)
TaskResource
getAttribute
in interface TaskResource
key
- The name of the attribute
null
TaskResource.getAttribute(java.lang.String)
public void setAttribute(String key, Object value)
TaskResource
setAttribute
in interface TaskResource
key
- The name of the attributevalue
- The attribute value or null
to remove it.TaskResource.setAttribute(java.lang.String, java.lang.Object)
public String getScheme()
RegisteredResource
getScheme
in interface RegisteredResource
RegisteredResource.getScheme()
public int getPriority()
RegisteredResource
getPriority
in interface RegisteredResource
RegisteredResource.getPriority()
public ResourceState getState()
TaskResource
getState
in interface TaskResource
TaskResource.getState()
public void setState(ResourceState s)
public long getLastChange()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public int compareTo(RegisteredResourceImpl b)
compareTo
in interface Comparable<RegisteredResourceImpl>
Comparable.compareTo(java.lang.Object)
public static int compare(TaskResource a, TaskResource b)
public Object getTemporaryAttribute(String key)
TaskResource
getTemporaryAttribute
in interface TaskResource
key
- The name of the attribute
null
TaskResource.getTemporaryAttribute(java.lang.String)
public void setTemporaryAttribute(String key, Object value)
TaskResource
setTemporaryAttribute
in interface TaskResource
key
- The name of the attributevalue
- The attribute value or null
to remove it.TaskResource.setTemporaryAttribute(java.lang.String, java.lang.Object)
public TaskResource clone(TransformationResult transformationResult) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |