This is a generic HTTP proxy, designed to handle any possible HTTP method,
but with a particular bias towards WebDAV. As of now it's pretty unstable, but
still it might be a good proof of concept towards a pure HTTP(++) proxy.
TODO: doesn't handle authentication properly
TODO: doesn't handle (and doubt it'll ever will) HTTP/1.1 keep-alive
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Setup this component by getting the (required) "url" parameter and the
(optional) "path" parameter.
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
Setup this component by getting the (required) "url" parameter and the
(optional) "path" parameter. If path is not specified, the request URI will
be used and forwarded.
TODO: handle query string
Get the request data, pass them on to the forwarder and return the result.
TODO: much better header handling
TODO: handle non XML and bodyless responses (probably needs a smarter Serializer,
since some XML has to go through the pipeline anyway.