Sun Java System Web Server 6.1 SP11 Administrator's Configuration File Reference

insert-filter

Applicable in Input-class directives.

The insert-filter SAF is used to add a filter to the filter stack to process incoming (client-to-server) data.

The order of Input fn="insert-filter" and Output fn="insert-filter" directives are important.

Returns

Returns REQ_PROCEED if the specified filter was inserted successfully or REQ_NOACTION if the specified filter was not inserted because it was not required. Any other return value indicates an error.

Parameters

The following table describes parameters for the insert-filter function.

Table 4–39 insert-filter Parameters

Parameter  

Description  

filter

Specifies the name of the filter to insert. For more information about predefined filters, see Input and Output.

bucket

(Optional) Common to all obj.conf functions.

Example


Input fn="insert-filter" filter="http-decompression"
        

The above directive instructs the insert-filter function to add a custom filter, that is, http-decompression to the filter stack. The http-decompression filter will decompress the incoming HTTP request data, before it goes to the service stage. For more information about predefined filters, see Input and Output. For more information about creating custom filters, see Chapter 4, Creating Custom Filters, in Sun Java System Web Server 6.1 SP11 NSAPI Programmer’s Guide.