Project

General

Profile

Bug #1085

Write code for "getResourceAsString_Comand.java" command

Added by Matthew Brooke over 16 years ago. Updated over 14 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
jalama-general
Target version:
Start date:
06/05/2003
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1085

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?)

History

#1 Updated by Matthew Brooke almost 19 years ago

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

#2 Updated by Matthew Brooke almost 19 years ago

damn - when I added the previous comment, it renumbered the comment I was
referring to :-(

- anyway - refer to the date, not the note number

#3 Updated by Matthew Brooke over 16 years ago

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()"

#4 Updated by Matthew Brooke over 14 years ago

rediuced priority - will ultimately still be needed, but not for 1.0.0beta1

#5 Updated by Matthew Brooke over 14 years ago

no longer required

#6 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 1085

Also available in: Atom PDF