dev@glassfish.java.net

Re: About the GLASSFISH-16651

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Thu, 12 Jul 2012 12:20:38 +0530

On Thursday 12 July 2012 11:17 AM, Tang Yong wrote:
> >Can't you just change >OSGiArchiveHandler >like you had done earlier?
> On the previous thread, I have refered that :
>
> On expand method, if using WebBundleURLStreamHandler service,
You don't have to select the URL handler yourself. Just construct a new
URL based on user's input and deploymentContext.getSource() and call
openStream() on it. Everything will be done for you by URL pluggability
layer in JRE.

e.g., new URL(uriScheme+":" +
file.toURI().toExternalForm()+queryParams).openStream().

Thanks,
Sahoo