Package org.graffiti.plugin.io.resources
Class HTTPhandler
java.lang.Object
org.graffiti.plugin.io.resources.AbstractResourceIOHandler
org.graffiti.plugin.io.resources.HTTPhandler
- All Implemented Interfaces:
ResourceIOHandler
public class HTTPhandler extends AbstractResourceIOHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HTTPhandler() -
Method Summary
Modifier and Type Method Description IOurlcopyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config)InputStreamgetInputStream(IOurl url)StringgetPrefix()static IOurlgetURL(String httpurl)Methods inherited from class org.graffiti.plugin.io.resources.AbstractResourceIOHandler
save, saveAs
-
Field Details
-
PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Details
-
HTTPhandler
public HTTPhandler()
-
-
Method Details
-
getPrefix
-
getInputStream
- Throws:
Exception
-
copyDataAndReplaceURLPrefix
public IOurl copyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config) throws Exception- Returns:
- new url, or null, if not copied
- Throws:
Exception- if something went wrong during copying
-
getURL
-