Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: http\rhttpfiltercollection.h
Link against: http.lib

Class RHTTPFilterCollection

class RHTTPFilterCollection

Support

Supported from 7.0

Description

A handle to the filter collection in a session.

It provides facilities for adding and deleting filters, and for querying what filters are installed.

Defined in RHTTPFilterCollection:
AddFilterL(), AddFilterL(), CanChangeFilters(), Query(), RHTTPFilterCollection(), RemoveFilter(), Session(), iImplementation

See also:


Member Functions


AddFilterL()

void AddFilterL(MHTTPFilter& aFilter, THTTPEvent aEvent, RStringF aHeader, TInt aStatusCode, TInt aPosition, RStringF aName);

Description

Adds a filter to the session's filter queue.

Note that this function only adds filters: it doesn't replace or otherwise affect any pre-existing filters.

Parameters

MHTTPFilter& aFilter

The filter to add

THTTPEvent aEvent

The event that triggers this filter

RStringF aHeader

The header whose presence triggers this filter, or KNullDesC to trigger on any header

TInt aStatusCode

The status code that triggers this filter, or KAnyStatusCode to trigger on any status code

TInt 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

RStringF aName

The name of the filter to add

Leave codes

KErrNoMemory

Out of memory


AddFilterL()

void AddFilterL(MHTTPFilter& aFilter, THTTPEvent aEvent, TInt aPosition, RStringF aName);

Description

Adds a filter to the session's filter queue.

This overload takes no status code or header parameter, and so is intended for filters that are only interested in events.

Parameters

MHTTPFilter& aFilter

The filter to add

THTTPEvent aEvent

The event that triggers this filter

TInt 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

RStringF aName

The name of the filter to add

Leave codes

KErrNoMemory

Out of memory


CanChangeFilters()

TBool CanChangeFilters() const;

Description

Tests if a filter can currently be added or removed.

Filters can only be added or removed if there are no transactions in existence on the session.

Return value

TBool

ETrue if a filter can currently be added or removed


RemoveFilter()

void RemoveFilter(RStringF aFilter);

Description

Removes all registrations of the specified filter.

Parameters

RStringF aFilter

Name of the filter to remove


Query()

THTTPFilterIterator Query(RStringF aName=RStringF());

Description

Gets an iterator for all registrations of a specified filter.

Parameters

RStringF aName=RStringF()

Name of the filter to query for. By default, it will find all filters.

Return value

THTTPFilterIterator

Iterator for all registrations of the specified filter

[Top]


Internal members

Description

This is internal and not intended for use.


RHTTPFilterCollection()

inline RHTTPFilterCollection();

Description

This is internal and not intended for use.


Session()

inline RHTTPSession Session() const;

Description

This is internal and not intended for use.

Return value

RHTTPSession

This is internal and not intended for use.


iImplementation

private: CHTTPSession* iImplementation;

Description

This is internal and not intended for use.