#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
Parameter | Description |
---|---|
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
Parameter | Description |
---|---|
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 |
Returns: ETrue if filters can currently be added or removed. Filters can only be added/removed if there are no transactions in existence on the session.
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.
Parameter | Description |
---|---|
aName | The name of the filter to find. (All filters will be found if the default parameter is used) |
Returns: A HTTP filter iterator.
IMPORT_C void | RemoveFilter | ( | RStringF | aFilter | ) |
Removes all filter registrations of the specified name.
Parameter | Description |
---|---|
aFilter | Filter name to remove. |