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 IOurl
copyDataAndReplaceURLPrefix(InputStream is, String targetFilename, ResourceIOConfigObject config)
InputStream
getInputStream(IOurl url)
String
getPrefix()
static IOurl
getURL(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
-