Package org.graffiti.plugin.io.resources
Class HTTPShandler
java.lang.Object
org.graffiti.plugin.io.resources.AbstractResourceIOHandler
org.graffiti.plugin.io.resources.HTTPShandler
- All Implemented Interfaces:
ResourceIOHandler
public class HTTPShandler extends AbstractResourceIOHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HTTPShandler()
-
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
-
HTTPShandler
public HTTPShandler()
-
-
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
-