#include <mw/http/rhttpfiltercollection.h>
| class RHTTPFilterCollection |
| Public Member Functions | |
|---|---|
| RHTTPFilterCollection() | |
| IMPORT_C void | AddFilterL(MHTTPFilter &, THTTPEvent, RStringF, TInt, TInt, RStringF) |
| IMPORT_C void | AddFilterL(MHTTPFilter &, THTTPEvent, TInt, RStringF) |
| IMPORT_C TBool | CanChangeFilters() |
| IMPORT_C THTTPFilterIterator | Query(RStringF) |
| IMPORT_C void | RemoveFilter(RStringF) |
| RHTTPSession | Session() |
A Handle on the filter collection in a session. It provides facilities for adding and deleting filters and for querying what filters are installed.
See also: RHTTPSession::FilterCollection MHTTPFilter::TPositions
| IMPORT_C void | AddFilterL | ( | MHTTPFilter & | aFilter, |
| THTTPEvent | aEvent, | |||
| RStringF | aHeader, | |||
| TInt | aStatusCode, | |||
| TInt | aPosition, | |||
| RStringF | aName | |||
| ) | ||||
Adds a filter to the session's filter queue.
Note: This function only adds filters; it doesn't replace or otherwise affect any pre-existing filters.
See also: See MHTTPFilter::TPositions
| Parameters | |
|---|---|
| aFilter | The filter to add |
| aEvent | The event that triggers this filter (or all) |
| aHeader | The header whose presence triggers this filter (or KNullDesC for any) |
| aStatusCode | The status code that triggers this filter (or -1 for all) |
| aPosition | The position of the filter in the queue. Standard values are documented in the documentation for the supplied filters, and are based on the standard defines in MHTTPFilter::TPositions |
| aName | the name of the Filter to add |
| IMPORT_C void | AddFilterL | ( | MHTTPFilter & | aFilter, |
| THTTPEvent | aEvent, | |||
| TInt | aPosition, | |||
| RStringF | aName | |||
| ) | ||||
See also: See MHTTPFilter::TPositions
| Parameters | |
|---|---|
| aFilter | The filter to add |
| aEvent | The event that triggers this filter (or all) |
| aPosition | The position of the filter in the queue. Standard values are documented in the documentation for the supplied filters, and are based on the standard defines in MHTTPFilter::TPositions |
| aName | the name of the Filter to add |
| IMPORT_C TBool | CanChangeFilters | ( | ) | const |
| IMPORT_C THTTPFilterIterator | Query | ( | RStringF | aName = RStringF() | ) |
An iterator to look at all filter registrations of a particular name. By default it will find all filters.
| Parameters | |
|---|---|
| aName | The name of the filter to find. (All filters will be found if the default parameter is used) |
| IMPORT_C void | RemoveFilter | ( | RStringF | aFilter | ) |
Removes all filter registrations of the specified name.
| Parameters | |
|---|---|
| aFilter | Filter name to remove. |