[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-dev] ProxyServlet customizeExchange : add parameter response ?
|
Going further on my prototype, I realize that in order to add other
functionalities (back-end balancing, sticky sessions, ...) I'll need
more customizations than I pushed in this change set :
https://git.eclipse.org/r/#/c/5211/
So I have set it abandoned in Gerrit.
Are you interested in having such functionalities in ProxyServlet ? If
so i can push a more complete change set later.
Otherwise I'll make my own servlet (without taking into account backward
compatibility issues).
Cheers
Le 01/03/2012 13:43, Thomas SEGISMONT a écrit :
Hi,
Thanks for the quick answer and sorry for waking you up ;)
I'll push a changeset to gerrit. Which branch should I base the change
on ?
Le 01/03/2012 12:48, Jesse McConnell a écrit :
we will certainly take a look, need a coffee before I consider it
right or not :)
feel free to open a bugzilla and attached the patch or push the patch
into gerrit for review
https://git.eclipse.org/r/#/q/project:jetty/org.eclipse.jetty.project,n,z
cheers,
jesse
--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx
On Thu, Mar 1, 2012 at 05:02, Thomas SEGISMONT<tsegismont@xxxxxxxxx>
wrote:
Hi,
I'm trying to build a http transparent proxy, similar to what you
get with
Apache mod_proxy, ProxyPass and ProxyPassReverse. So I need to
intercept
response headers sent by the back-end server ( Location,
Content-Location
and URI).
I have a servlet which extends ProxyServlet.Transparent and
overrides method
customizeExchange :
@Override
protected void customizeExchange(HttpExchange exchange,
HttpServletRequest
request)
{
exchange.setEventListener(new
ProxyEventListener(exchange.getEventListener(), request));
}
Here I miss a reference to the HttpServletResponse instance. I'd
like to
have :
@Override
protected void customizeExchange(HttpExchange exchange,
HttpServletRequest
request, HttpServletResponse response)
{
exchange.setEventListener(new
ProxyEventListener(exchange.getEventListener(), request, response));
}
Would you accept a patch like this ? Or do you think there's another
way to
do the job ?
Thanks
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev