Encoding
and Decoding WSP Headers
This tutorial describes the steps to encode and decode WSP headers.
Introduction
Wireless Session Protocol
(WSP) offers services that are most suited for browsing applications. It provides
functionality equivalent to HTTP 1.1 which incorporates features such as long-lived
sessions, a common facility for data push, capability negotiation and session
suspend/resume. For more details on WSP services, refer to
WAP WSP
.
-
Reading headers in a WSP buffer
TWspField
object holds the name and value pair of the WSP header field.
TWspHeaderSegmenter
pulls the header / value pair out of the WSP buffer (into
TWspField
). Call
TWspHeaderSegmenter::NextL()
to iterate through the WSP buffer. It calls
TWspPrimitiveDecoder
.
-
WSP Header Primitive Encoding
TWspPrimitiveEncoder
allows encoding of header values. This encodes the input using various WSP encoding methods as follows:
TWspPrimitiveEncoder
is used to convert data into binary strings.
-
WSP Header Primitive Decoding
TWspPrimitiveDecoder
allows decoding the primitive values of the header. This allows interpreting the encoded header.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.