Class ArtifactHandler
- java.lang.Object
-
- org.apache.sling.feature.io.artifacts.ArtifactHandler
-
public class ArtifactHandler extends Object
A handler provides a file object for an artifact.
-
-
Constructor Summary
Constructors Constructor Description ArtifactHandler(File file)Create a new handler.ArtifactHandler(String url, URL localURL)Create a new handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetLocalURL()Get a local url for the artifactStringgetUrl()Get the url of the artifact
-
-
-
Constructor Detail
-
ArtifactHandler
public ArtifactHandler(String url, URL localURL)
Create a new handler.- Parameters:
url- The url of the artifactlocalURL- The local URL for the artifact
-
ArtifactHandler
public ArtifactHandler(File file) throws MalformedURLException
Create a new handler.- Parameters:
file- The file for the artifact- Throws:
MalformedURLException- Since:
- 1.1.0
-
-