\n
Microsoft Invisible Computing

HttpConnector Concrete Class

Create connection for SOAP commnunication (or handle request).

Implements IHttpConnector

Subclass of CUnknown

Methods

Inherits CUnknown.QueryInterface
HttpConnectorAddRef implements IUnknown.AddRef
Source in httpconnector.c

Increments the reference count of the object.

HttpConnectorRelease implements IUnknown.Release
Source in httpconnector.c

Decrements the reference count of an object. When the count goes to zero, the object is destroyed.

HttpConnectorSendMessage implements IHttpConnector.SendMessage
Source in httpconnector.c

Send an HTTP message. This can be either a request or a reply.

HttpConnectorReceiveMessage implements IHttpConnector.ReceiveMessage
Source in httpconnector.c

Receive and process incoming message. If the method returns E_WOULD_BLOCK or E_RESTART it can be called again.

HttpConnectorDone implements IHttpConnector.Done
Source in httpconnector.c

Informs the HTTP connector that the related Send and Receives have been completed and HTTP headers and other per-transaction state can be discarded. On the server side a transaction is a Receive-Send-Done, where the Done method re-enables the connection ofr further reception, or closes the socket if Keep-Alive is disabled. On the client side the transaction is Send-Receive-Done, where the Done method deals with cleanup.

HttpConnectorGetPut implements IHttpConnector.GetPut
Source in httpconnector.c

Do a single HTTP Get or PUT transaction.

HttpConnectorGetRequestURI implements IHttpConnector.GetRequestURI
Source in httpconnector.c

Use this method to get the URI the request was intended for.

HttpConnectorGetHeaderField implements IHttpConnector.GetHeaderField
Source in httpconnector.c

Access request header fields with this operation.

HttpConnectorGetContent implements IHttpConnector.GetContent
Source in httpconnector.c

Access the Tokenizer instance encapsulated by the request object. The request is passed to an IHTTPPROCESS implementation right after the CRLFCRLF separating the request header and body has been parsed, so the IHTTPPROCESS implementation can depend on the Tokenizer being right at the beginning of the request content. For example, in case of a SOAP request, the Post implementation of IHTTPPROCESS calls this method to get the Tokenizer, and passes the Tokenizer interface directly to a SAX parser instance. The SAX parser can start requesting tokens without further ado because it is guaranteed that the Tokenizer is at the right position in the stream. Note: Not all requests have content, but all have Tokenizer instances. Use the Content-Length or Transfer-Encoding header fields to figure out how much content the request contains. The tokenizer will also enforce the length automatically.

HttpConnectorAllocateBuffer implements IHttpConnector.AllocateBuffer
Source in httpconnector.c

Create an IBuffer that works with the connector.

HttpConnectorSetKey implements IHttpConnector.SetKey
Source in httpconnector.c

Generate and set the session key to use on this connection.

HttpConnectorClearKey implements IHttpConnector.ClearKey
Source in httpconnector.c

Clear the session key to use on this connection.

HttpConnectorSetBasicKey implements IHttpConnector.SetBasicKey
Source in httpconnector.c

Set user name and key for 'Basic' authentication (see RFC 2617). Note that this authentication scheme does not encrypt either the data or the password.

HttpConnectorListen implements IHttpConnector.Listen
Source in httpconnector.c

Hand this connector over to listener server for receive processing until the timeout expires.

©2006 Microsoft Corporation. All rights reserved. Terms of Use Privacy Statement Accessibility End User License Agreement