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("Cookie",cookie);
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:
========================================
FopImageFactory.java:
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.
Heiko
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
GMX Tipp:
Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]