i wanna set request properties when retrieving for example an image with
<fo:external-graphic>. I need it for setting cookies or authorization header (if
image is located on a server where authorization is needed):
  URLConnection uc = url.openConnection();
  uc.setRequestProperty("Authorization", "Basic " + encoding);

I'm new to FOP development. Does anybody know if it is a feature commonly
wanted because I found that it is not implemented yet:



public static FopImage Make(String href)
        throws MalformedURLException, FopImageException {

        // Get the absolute URL
        URL absoluteURL = null;
        InputStream imgIS = null;
        try {
            absoluteURL = new URL(href);
            imgIS = absoluteURL.openStream();
        } catch (Exception e) {


Here some code has to be implemented to set the request properties and a way
has to be found to set name and value of the properties via Driver object I
would suggest.
Any comments are welcome.


GMX - Die Kommunikationsplattform im Internet.

GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to