Bug #1085
closed
Write code for "getResourceAsString_Comand.java" command
Added by Matthew Brooke over 21 years ago.
Updated over 19 years ago.
Description
Write code for "getResourceAsString_Comand.java" command which takes a url as an
argument (either a file:// url or an http: or ftp: etc - any others??) and gets the resource
that the url points to. Then returns this resource as a string to the caller.
If the resource turns out to be a binary file, this class would detect that fact and encode it
as a base64 string.
If this is the case, we probably need to return the MIME type as well as the encoded
data?
(Can we use any existing XPCOM functionality for this or should it all be a java
command?)
have checked in stub code for getResourceAsString_Command.java - currently
simply returns the Map it was passed.
This enabled me to make the edit to the getResourceContent() method in
chrome/content/jalama_library/jalama_library.js, as described in the note
"Additional Comment #1 From Matthew Brooke 2003-06-05 17:23" - so this can now
be disregarded
damn - when I added the previous comment, it renumbered the comment I was
referring to :-(
- anyway - refer to the date, not the note number
The initial purpose for this command is so it can be called from the data package wizard
when inlining data.
When the code is done, the actual call should be made from the chrome/content/
jalama_library/jalama_library.js - within the function "getResourceContent()"
rediuced priority - will ultimately still be needed, but not for 1.0.0beta1
Original Bugzilla ID was 1085
Also available in: Atom
PDF