* Johan Compagner:

> how is this class (WebExternalResourceStream.java) different to:
> UrlResourceStream ??

* UrlResourceStream implements IResource for URLs, uses URL.openConnection()
* WebExternalResourceStream implements IResource for a webapp URI,
  uses the servlet context

> and how is WebExternalResourceRequestTarget different to
> ResourceStreamRequestTarget ?

The former could be dropped, except that currently
WebExternalResourceRequestTarget does not set Content-Length.  If
we use WebExternalResource + ResourceStreamRequestTarget it will
throw an exception because length() is not implemented.  I need to
address that, but that means I need to buffer the resource in a
ByteArrayOutputStream.
-- 
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

Reply via email to