Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 50984 invoked from network); 30 Mar 2009 13:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Mar 2009 13:12:28 -0000 Received: (qmail 85162 invoked by uid 500); 30 Mar 2009 13:12:28 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 85098 invoked by uid 500); 30 Mar 2009 13:12:28 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 85088 invoked by uid 99); 30 Mar 2009 13:12:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 13:12:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO aurora.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2009 13:12:26 +0000 Received: from aurora.apache.org (localhost [127.0.0.1]) by aurora.apache.org (8.13.8+Sun/8.13.8) with ESMTP id n2UDC6bs001620 for ; Mon, 30 Mar 2009 13:12:06 GMT Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: dev@hc.apache.org Date: Mon, 30 Mar 2009 13:12:05 -0000 Message-ID: <20090330131205.1285.48183@aurora.apache.org> Subject: [Httpcomponents Wiki] Update of "HttpClientTutorial" by OlegKalnichevski X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpcomponents Wiki" for change notification. The following page has been changed by OlegKalnichevski: http://wiki.apache.org/HttpComponents/HttpClientTutorial ------------------------------------------------------------------------------ == HTTP execution context == - Maintaining processing state. Persisting state between request executions using local context. + Originally HTTP has been designed as a stateless, response-request oriented protocol. However, real world applications often need to be able to persist state information through several logically related request-response exchanges. In order to enable applications to maintain a processing state HttpClient allows HTTP requests to be executed within a particular execution context, referred to as HTTP context. Multiple logically related requests can participate in a logical session if the same context is reused between consecutive requests. + + HTTP context functions similarly to java.util.Map. It is simply a collection of arbitrary named values. Application can populate context attributes prior to a request execution or examine the context after the execution has been completed. + + In the course of HTTP request execution HttpClient adds the following attributes to the execution context: + + * '''http.connection''' - HttpConnection instance representing the actual connection to the target server. + + * '''http.target_host''' - HttpHost instance representing the connection target. + + * '''http.proxy_host''' - HttpHost instance representing the connection proxy, if used. + + * '''http.request''' - HttpRequest instance representing the actual HTTP request. + + * '''http.response''' - HttpResponse instance representing the actual HTTP response. + + * '''http.request_sent''' - Boolean object representing the flag indicating whether the actual request has been fully transmitted to the connection target. == HTTP protocol interceptors == --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org