hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rieser, Michael \(SCI TW\)" <Michael_Rieser...@stercomm.com>
Subject RE: non-File based configuration
Date Mon, 11 Apr 2005 15:11:00 GMT
Thanks!

Before posting we considered creating our own special protocol handler. This is much simpler.


Thanks again,
Mike


> -----Original Message-----
> From: hal.hildebrand@hellblazer.com
> [mailto:hal.hildebrand@hellblazer.com]
> Sent: Friday, April 08, 2005 10:42 PM
> To: hivemind-user@jakarta.apache.org
> Subject: RE: non-File based configuration
> 
> 
> ???  It's really simple matter.
> 
> The URLStreamHandler subclass only requires implementing the
> openConnection() method.  This returns your implementation of the
> URLConnection.  This subclass only really has to implement the
> getInputStream() method.
> 
> So you end up with something like the attached example and usage like:
> 
> FilterInputStream is = ....;  // your encrypted filter input stream
> URL url = new URL(null, "file://doesnotmatteratall", new 
> MyUrlHandler(is));
> builder.addModuleDescriptorProvider(new 
> XmlModuleDescriptorProvider(url));
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message