Can I change ServletRequest.getServerName() value?
843841Feb 24 2005 — edited Feb 25 2005Hello all!
Does anybody know if there is possibility to change (in Java code) the value returned by ServletRequest.getServerName() ?
By default it:
"Returns the host name of the server that received the request. For HTTP servlets, same as the value of the CGI variable SERVER_NAME"
For example, I have a filter and want to replace SERVER_NAME in request with some custom value for all further handlers (servlets, JSPs).
Thank you in advance,
Vlad.