Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Intercepting GET requests using SAF filters

830587Jan 12 2011 — edited Jan 19 2011
Hepp..

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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2011
Added on Jan 12 2011
4 comments
154 views