THTTPSessionEvent Class Reference

#include <mw/http/thttpevent.h>

class THTTPSessionEvent : public THTTPEvent

Inherits from

Detailed Description

A HTTP session status message. Status messages consist of a UID and a status code within that UID. Extension dlls that needs to create new status messages should use their own UID and create status codes within that UID.

Member Enumeration Documentation

Enum TSessionEvent

The TSessionEvents type defines the evenst that correspond to the of a session entity. Outgoing events originate from the client or from filters. Incoming events originate from the protocol handler or from filters, and clients should handle these.

EnumeratorValueDescription
EConnectKSessionEventBaseStatus

A session connection should be initiated. An outgoing event.

EDisconnectKSessionEventBaseStatus + 1

The session should be disconnected. An outgoing event.

EConnectedOKKSessionEventBaseStatus + 2

The session has been successfully connected. None of the client requested capabilities were denied or reduced by the proxy. An incoming event.

EConnectedWithReducedCapabilitiesKSessionEventBaseStatus + 3

The session has been connected, but with one or more of the client requested capabilities denied or reduced by the proxy. An incoming event.

EDisconnectedKSessionEventBaseStatus + 4

The session has been disconnected. This either confirms an earlier EDisconnect event or indicates a forced disconnection by the proxy. An incoming event.

EAuthenticatedOKKSessionEventBaseStatus + 5

The authentication handshake succeeded with the automatic validation of the (proxy) server certificate.

EAuthenticationFailureKSessionEventBaseStatus + 6

The authentication handshake failed.

EConnectionTimedOutKSessionEventBaseStatus + 7

The connection attempt to the proxy timed out.

Enum TSessionWarning

HTTP session warning events.

EnumeratorValueDescription
ENotConnectedKSessionWarningBaseStatus

The client has requested a transaction event that requires a session to be connected or the connection to be initiated, but neither is currently true. The transaction event will be left pending until the session is connected. An incoming event.

EExceptionInfoKSessionWarningBaseStatus + 1

The proxy has sent some information that is not related to a transaction and has no effect on the state of the session. The information from the proxy is in the EProxyExceptionInfo property.

ERedirectedKSessionWarningBaseStatus + 2

The client connection request was (permanently) redirected to a new WAP proxy address. The client should check the EWspProxyAddress property for the new address. The client's access-point database can then be updated with this address. No notification is given of a temporary redirection.

EAlreadyConnectingKSessionWarningBaseStatus + 3

The client has requested a session event that is not valid whilst the WSP session is trying to establish a connection.

EAlreadyConnectedKSessionWarningBaseStatus + 4

The client has requested a session event that is not valid whilst the WSP session is in the Connected state.

EAlreadyDisconnectingKSessionWarningBaseStatus + 5

The client has requested a session event that is not valid whilst the WSP session is trying to close the connection.

EAlreadyDisconnectedKSessionWarningBaseStatus + 6

The client has requested a session event that is not valid whilst the WSP session is in the Null (or disconnected) state.

Constructor & Destructor Documentation

THTTPSessionEvent ( TInt, TUint )

THTTPSessionEvent(TIntaStatus,
TUintaUID =  KHTTPUid
)[inline]

Constructor

Parameters
aStatusThe status value.
aUIDThe UID.

THTTPSessionEvent ( TStandardEvent )

THTTPSessionEvent(TStandardEventaStatus = EAnySessionEvent)[inline]

Constructor (using a standard event and the HTTP UID)

Parameters
aStatusThe standard event to use.

THTTPSessionEvent ( TSessionEvent )

THTTPSessionEvent(TSessionEventaStatus)[inline]

Constructor (using a session event and the HTTP UID)

Parameters
aStatusThe session event to use.

Member Function Documentation

operator!= ( TSessionEvent )

TBool operator!=(TSessionEventaStatus)const [inline]

operator= ( TSessionEvent )

THTTPSessionEvent &operator=(TSessionEventaStatus)[inline]

Assigns a session event code to an event object

Parameters
aStatusThe session event.

operator== ( TSessionEvent )

TBool operator==(TSessionEventaStatus)const [inline]