THTTPSessionEvent Class Reference

class THTTPSessionEvent : public THTTPEvent

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.

Inherits from

Public Member Functions
THTTPSessionEvent(TInt, TUint)
THTTPSessionEvent(TStandardEvent)
THTTPSessionEvent(TSessionEvent)
TBool operator!=(TSessionEvent)
THTTPSessionEvent &operator=(TSessionEvent)
TBool operator==(TSessionEvent)
Inherited Functions
THTTPEvent::IsSessionEvent()const
THTTPEvent::THTTPEvent(TInt,TUint)
THTTPEvent::THTTPEvent(TStandardEvent)
THTTPEvent::THTTPEvent(TTransactionEvent)
THTTPEvent::operator!=(THTTPEvent)const
THTTPEvent::operator!=(TStandardEvent)const
THTTPEvent::operator!=(TTransactionEvent)const
THTTPEvent::operator=(TStandardEvent)
THTTPEvent::operator=(TTransactionEvent)
THTTPEvent::operator==(THTTPEvent)const
THTTPEvent::operator==(TStandardEvent)const
THTTPEvent::operator==(TTransactionEvent)const
Public Member Enumerations
enumTSessionEvent {
EConnect = KSessionEventBaseStatus, EDisconnect = KSessionEventBaseStatus + 1, EConnectedOK = KSessionEventBaseStatus + 2, EConnectedWithReducedCapabilities = KSessionEventBaseStatus + 3, EDisconnected = KSessionEventBaseStatus + 4, EAuthenticatedOK = KSessionEventBaseStatus + 5, EAuthenticationFailure = KSessionEventBaseStatus + 6, EConnectionTimedOut = KSessionEventBaseStatus + 7
}
enumTSessionWarning {
ENotConnected = KSessionWarningBaseStatus, EExceptionInfo = KSessionWarningBaseStatus + 1, ERedirected = KSessionWarningBaseStatus + 2, EAlreadyConnecting = KSessionWarningBaseStatus + 3, EAlreadyConnected = KSessionWarningBaseStatus + 4, EAlreadyDisconnecting = KSessionWarningBaseStatus + 5, EAlreadyDisconnected = KSessionWarningBaseStatus + 6
}
Inherited Enumerations
THTTPEvent:TDirection
THTTPEvent:TStandardEvent
THTTPEvent:TTransactionEvent
THTTPEvent:TTransactionWarning
Inherited Attributes
THTTPEvent::iIsSessionEventFlag
THTTPEvent::iStatus
THTTPEvent::iUID

Constructor & Destructor Documentation

THTTPSessionEvent(TInt, TUint)

THTTPSessionEvent(TIntaStatus,
TUintaUID =  KHTTPUid
)[inline]

Constructor

Parameters

TInt aStatusThe status value.
TUint aUID =  KHTTPUid The UID.

THTTPSessionEvent(TStandardEvent)

THTTPSessionEvent(TStandardEventaStatus = EAnySessionEvent)[inline]

Constructor (using a standard event and the HTTP UID)

Parameters

TStandardEvent aStatus = EAnySessionEventThe standard event to use.

THTTPSessionEvent(TSessionEvent)

THTTPSessionEvent(TSessionEventaStatus)[inline]

Constructor (using a session event and the HTTP UID)

Parameters

TSessionEvent aStatusThe session event to use.

Member Functions Documentation

operator!=(TSessionEvent)

TBool operator!=(TSessionEventaStatus)const [inline]

Parameters

TSessionEvent aStatus

operator=(TSessionEvent)

THTTPSessionEvent &operator=(TSessionEventaStatus)[inline]

Assigns a session event code to an event object

Parameters

TSessionEvent aStatusThe session event.

operator==(TSessionEvent)

TBool operator==(TSessionEventaStatus)const [inline]

Parameters

TSessionEvent aStatus

Member Enumerations 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.

Enumerators

EConnect = KSessionEventBaseStatus

A session connection should be initiated. An outgoing event.

EDisconnect = KSessionEventBaseStatus + 1

The session should be disconnected. An outgoing event.

EConnectedOK = KSessionEventBaseStatus + 2

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

EConnectedWithReducedCapabilities = KSessionEventBaseStatus + 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.

EDisconnected = KSessionEventBaseStatus + 4

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

EAuthenticatedOK = KSessionEventBaseStatus + 5

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

EAuthenticationFailure = KSessionEventBaseStatus + 6

The authentication handshake failed.

EConnectionTimedOut = KSessionEventBaseStatus + 7

The connection attempt to the proxy timed out.

Enum TSessionWarning

HTTP session warning events.

Enumerators

ENotConnected = KSessionWarningBaseStatus

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.

EExceptionInfo = KSessionWarningBaseStatus + 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.

ERedirected = KSessionWarningBaseStatus + 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.

EAlreadyConnecting = KSessionWarningBaseStatus + 3

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

EAlreadyConnected = KSessionWarningBaseStatus + 4

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

EAlreadyDisconnecting = KSessionWarningBaseStatus + 5

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

EAlreadyDisconnected = KSessionWarningBaseStatus + 6

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