Re: How to get Request from RequestFacade

2007-09-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: yes, I noticed it's quite hard. That's why I suspected that was not the best way to proceed. The Valve solution works quite fine. I was trying to switch to a Filter-based one since the license validation code is quite

Re: How to get Request from RequestFacade

2007-09-07 Thread Tremal Naik
2007/9/7, Bill Barker [EMAIL PROTECTED]: From his examples below, it looks like he wants access to the TC internals. yes, you're right For the OP's original problem, for obvious security reasons TC makes it very hard to access the internal TC objects behind the various Facades from a webapps

How to get Request from RequestFacade

2007-09-06 Thread Tremal Naik
Hello, I'v been using a valve to perform license checking in my web application. The method invoke(Request request, Response response) had access to the Request and Response objects, allowing me to perform some advanced operations. For instance, I made use of instructions like: Session

Re: How to get Request from RequestFacade

2007-09-06 Thread David Smith
May I ask what exactly you want to do with the facade? Seems like you could do what you want with a request or response wrapper instead. --David Tremal Naik wrote: Hello, I'v been using a valve to perform license checking in my web application. The method invoke(Request request, Response

Re: How to get Request from RequestFacade

2007-09-06 Thread Tremal Naik
That's the point, I don't know much about request/response wrapping. I don't need the Facade itself, what I need are the real Catalina Request/Response objects hidden behind it. I don't know how to get them from inside a Filter. Thanks, TN 2007/9/6, David Smith [EMAIL PROTECTED]: May I ask

Re: How to get Request from RequestFacade

2007-09-06 Thread David Smith
Ok... do you need them to modify the request and/or response? Or are you trying to pull some information from the original tomcat internals? I first assumed you were attempting to modify the request or response, so a wrapper is ideal. All you have to do is create a class that extends

Re: How to get Request from RequestFacade

2007-09-06 Thread Tremal Naik
2007/9/6, David Smith [EMAIL PROTECTED]: Ok... do you need them to modify the request and/or response? Or are you trying to pull some information from the original tomcat internals? ok, I don't need to modify the Request or Response. I'm trying to read them. Maybe a Wrapper is too much... TN

Re: How to get Request from RequestFacade

2007-09-06 Thread Tremal Naik
2007/9/6, Tremal Naik [EMAIL PROTECTED]: ok, I don't need to modify the Request or Response. I'm trying to read them. by the way, I'd be glad if I was able to read the StandardSession. I mean, even if it's not possible reading the Request, maybe it's easier accessing the Session behind the

Re: How to get Request from RequestFacade

2007-09-06 Thread David Smith
Don't know -- maybe one of the devs that monitor the list can offer some help. I'm still unclear as to why you need access those object. If you could say more about that, someone might be able to offer a better way to do what you want. --David Tremal Naik wrote: 2007/9/6, Tremal Naik

Re: How to get Request from RequestFacade

2007-09-06 Thread Tremal Naik
2007/9/6, David Smith [EMAIL PROTECTED]: help. I'm still unclear as to why you need access those object. If you could say more about that, someone might be able to offer a better way to do what you want. ok, I need to access some of the Catalina Session specific features. In the Valve

Re: How to get Request from RequestFacade

2007-09-06 Thread Bill Barker
David Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ok... do you need them to modify the request and/or response? Or are you trying to pull some information from the original tomcat internals? From his examples below, it looks like he wants access to the TC internals.