Intercepting GET requests using SAF filters
830587Jan 12 2011 — edited Jan 19 2011Hepp..
I'm trying to add functionality on the sunOne server for extracting a cookie into several smaller ones. This large cookie contains several other cookies for the domain due to issues around having to many cookies. The cookies that are wrapped into the cookie i want to explode contains affinity information that the Websphere SunOne plugin needs in order to keep the server affinity.
The filter is written, and seems to be functioning as intended, but only on POST requests. Doh.. And after further investigating the documentation, it becomes clear that this is by design.
Tried to alter the configuration with method, but I guess leaving method out keeps the "widest" range.
Input fn="insert-filter" filter="replace-cookies"
Re-implemented the filter function into a SAF, and made it functioning for both GET and POST requests. The major drawback however, only one Service is called for each request, which excluded the WebspherePlugin that handled all the requests i was interested in. Doh and double doh...
SO...
Anyone know of way of getting that SAF function active on both GET and POSTS request, not altering the original chain?