Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

remove Filter Method

The remove filter method is called when a filter stack is destroyed (that is, when the corresponding socket descriptor is closed), when the server finishes processing the request the filter was associated with, or when an SAF such as remove-filter calls the filter_remove function. The remove filter method is optional.

The remove method can be used to clean up any data the filter allocated in insert and to pass any buffered data to the next filter by calling net_write(layer->lower, ...).

For more information, see remove() Function in Chapter 6, NSAPI Function and Macro Reference.