hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1637120 [37/40] - in /httpcomponents/site: ./ httpcomponents-asyncclient-4.0.x/ httpcomponents-asyncclient-4.1.x/ httpcomponents-client-4.3.x/ httpcomponents-client-4.3.x/fluent-hc/ httpcomponents-client-4.3.x/fluent-hc/apidocs/ httpcompon...
Date Thu, 06 Nov 2014 14:29:58 GMT
Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/BrowserCompatSpec.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/BrowserCompatSpec.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/BrowserCompatSpec.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/BrowserCompatSpec.html Thu Nov  6 14:29:37 2014
@@ -38,195 +38,226 @@
 <a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">package</strong> org.apache.http.impl.cookie;
 <a class="jxr_linenumber" name="29" href="#29">29</a>  
 <a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.util.List;
-<a class="jxr_linenumber" name="32" href="#32">32</a>  
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.http.FormattedHeader;
-<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.http.Header;
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HeaderElement;
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.http.annotation.NotThreadSafe;
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.utils.DateUtils;
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.ClientCookie;
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.Cookie;
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.CookieOrigin;
-<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.MalformedCookieException;
-<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.SM;
-<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.BasicHeaderElement;
-<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.BasicHeaderValueFormatter;
-<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.BufferedHeader;
-<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.ParserCursor;
-<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.http.util.Args;
-<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.http.util.CharArrayBuffer;
-<a class="jxr_linenumber" name="49" href="#49">49</a>  
-<a class="jxr_linenumber" name="50" href="#50">50</a>  
-<a class="jxr_linenumber" name="51" href="#51">51</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="52" href="#52">52</a>  <em class="jxr_javadoccomment"> * Cookie specification that strives to closely mimic (mis)behavior of</em>
-<a class="jxr_linenumber" name="53" href="#53">53</a>  <em class="jxr_javadoccomment"> * common web browser applications such as Microsoft Internet Explorer</em>
-<a class="jxr_linenumber" name="54" href="#54">54</a>  <em class="jxr_javadoccomment"> * and Mozilla FireFox.</em>
-<a class="jxr_linenumber" name="55" href="#55">55</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="56" href="#56">56</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="57" href="#57">57</a>  <em class="jxr_javadoccomment"> * @since 4.0</em>
-<a class="jxr_linenumber" name="58" href="#58">58</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="59" href="#59">59</a>  @NotThreadSafe <em class="jxr_comment">// superclass is @NotThreadSafe</em>
-<a class="jxr_linenumber" name="60" href="#60">60</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/http/impl/cookie/CookieSpecBase.html">CookieSpecBase</a> {
-<a class="jxr_linenumber" name="61" href="#61">61</a>  
-<a class="jxr_linenumber" name="62" href="#62">62</a>  
-<a class="jxr_linenumber" name="63" href="#63">63</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String[] DEFAULT_DATE_PATTERNS = <strong class="jxr_keyword">new</strong> String[] {
-<a class="jxr_linenumber" name="64" href="#64">64</a>          DateUtils.PATTERN_RFC1123,
-<a class="jxr_linenumber" name="65" href="#65">65</a>          DateUtils.PATTERN_RFC1036,
-<a class="jxr_linenumber" name="66" href="#66">66</a>          DateUtils.PATTERN_ASCTIME,
-<a class="jxr_linenumber" name="67" href="#67">67</a>          <span class="jxr_string">"EEE, dd-MMM-yyyy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="68" href="#68">68</a>          <span class="jxr_string">"EEE, dd-MMM-yyyy HH-mm-ss z"</span>,
-<a class="jxr_linenumber" name="69" href="#69">69</a>          <span class="jxr_string">"EEE, dd MMM yy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="70" href="#70">70</a>          <span class="jxr_string">"EEE dd-MMM-yyyy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="71" href="#71">71</a>          <span class="jxr_string">"EEE dd MMM yyyy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="72" href="#72">72</a>          <span class="jxr_string">"EEE dd-MMM-yyyy HH-mm-ss z"</span>,
-<a class="jxr_linenumber" name="73" href="#73">73</a>          <span class="jxr_string">"EEE dd-MMM-yy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="74" href="#74">74</a>          <span class="jxr_string">"EEE dd MMM yy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="75" href="#75">75</a>          <span class="jxr_string">"EEE,dd-MMM-yy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="76" href="#76">76</a>          <span class="jxr_string">"EEE,dd-MMM-yyyy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="77" href="#77">77</a>          <span class="jxr_string">"EEE, dd-MM-yyyy HH:mm:ss z"</span>,
-<a class="jxr_linenumber" name="78" href="#78">78</a>      };
-<a class="jxr_linenumber" name="79" href="#79">79</a>  
-<a class="jxr_linenumber" name="80" href="#80">80</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String[] datepatterns;
-<a class="jxr_linenumber" name="81" href="#81">81</a>  
-<a class="jxr_linenumber" name="82" href="#82">82</a>      <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default constructor */</em>
-<a class="jxr_linenumber" name="83" href="#83">83</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a>(<strong class="jxr_keyword">final</strong> String[] datepatterns, <strong class="jxr_keyword">final</strong> BrowserCompatSpecFactory.SecurityLevel securityLevel) {
-<a class="jxr_linenumber" name="84" href="#84">84</a>          <strong class="jxr_keyword">super</strong>();
-<a class="jxr_linenumber" name="85" href="#85">85</a>          <strong class="jxr_keyword">if</strong> (datepatterns != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="86" href="#86">86</a>              <strong class="jxr_keyword">this</strong>.datepatterns = datepatterns.clone();
-<a class="jxr_linenumber" name="87" href="#87">87</a>          } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="88" href="#88">88</a>              <strong class="jxr_keyword">this</strong>.datepatterns = DEFAULT_DATE_PATTERNS;
-<a class="jxr_linenumber" name="89" href="#89">89</a>          }
-<a class="jxr_linenumber" name="90" href="#90">90</a>          <strong class="jxr_keyword">switch</strong> (securityLevel) {
-<a class="jxr_linenumber" name="91" href="#91">91</a>              <strong class="jxr_keyword">case</strong> SECURITYLEVEL_DEFAULT:
-<a class="jxr_linenumber" name="92" href="#92">92</a>                  registerAttribHandler(ClientCookie.PATH_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicPathHandler.html">BasicPathHandler</a>());
-<a class="jxr_linenumber" name="93" href="#93">93</a>                  <strong class="jxr_keyword">break</strong>;
-<a class="jxr_linenumber" name="94" href="#94">94</a>              <strong class="jxr_keyword">case</strong> SECURITYLEVEL_IE_MEDIUM:
-<a class="jxr_linenumber" name="95" href="#95">95</a>                  registerAttribHandler(ClientCookie.PATH_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicPathHandler.html">BasicPathHandler</a>() {
-<a class="jxr_linenumber" name="96" href="#96">96</a>                          @Override
-<a class="jxr_linenumber" name="97" href="#97">97</a>                          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> validate(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/Cookie.html">Cookie</a> cookie, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/CookieOrigin.html">CookieOrigin</a> origin) <strong class="jxr_keyword">throws</strong> MalformedCookieException {
-<a class="jxr_linenumber" name="98" href="#98">98</a>                              <em class="jxr_comment">// No validation</em>
-<a class="jxr_linenumber" name="99" href="#99">99</a>                          }
-<a class="jxr_linenumber" name="100" href="#100">100</a>                     }
-<a class="jxr_linenumber" name="101" href="#101">101</a>                 );
-<a class="jxr_linenumber" name="102" href="#102">102</a>                 <strong class="jxr_keyword">break</strong>;
-<a class="jxr_linenumber" name="103" href="#103">103</a>             <strong class="jxr_keyword">default</strong>:
-<a class="jxr_linenumber" name="104" href="#104">104</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"Unknown security level"</span>);
-<a class="jxr_linenumber" name="105" href="#105">105</a>         }
-<a class="jxr_linenumber" name="106" href="#106">106</a> 
-<a class="jxr_linenumber" name="107" href="#107">107</a>         registerAttribHandler(ClientCookie.DOMAIN_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicDomainHandler.html">BasicDomainHandler</a>());
-<a class="jxr_linenumber" name="108" href="#108">108</a>         registerAttribHandler(ClientCookie.MAX_AGE_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicMaxAgeHandler.html">BasicMaxAgeHandler</a>());
-<a class="jxr_linenumber" name="109" href="#109">109</a>         registerAttribHandler(ClientCookie.SECURE_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicSecureHandler.html">BasicSecureHandler</a>());
-<a class="jxr_linenumber" name="110" href="#110">110</a>         registerAttribHandler(ClientCookie.COMMENT_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicCommentHandler.html">BasicCommentHandler</a>());
-<a class="jxr_linenumber" name="111" href="#111">111</a>         registerAttribHandler(ClientCookie.EXPIRES_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicExpiresHandler.html">BasicExpiresHandler</a>(
-<a class="jxr_linenumber" name="112" href="#112">112</a>                 <strong class="jxr_keyword">this</strong>.datepatterns));
-<a class="jxr_linenumber" name="113" href="#113">113</a>         registerAttribHandler(ClientCookie.VERSION_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.html">BrowserCompatVersionAttributeHandler</a>());
-<a class="jxr_linenumber" name="114" href="#114">114</a>     }
-<a class="jxr_linenumber" name="115" href="#115">115</a> 
-<a class="jxr_linenumber" name="116" href="#116">116</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default constructor */</em>
-<a class="jxr_linenumber" name="117" href="#117">117</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a>(<strong class="jxr_keyword">final</strong> String[] datepatterns) {
-<a class="jxr_linenumber" name="118" href="#118">118</a>         <strong class="jxr_keyword">this</strong>(datepatterns, BrowserCompatSpecFactory.SecurityLevel.SECURITYLEVEL_DEFAULT);
+<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.util.Collections;
+<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> java.util.Locale;
+<a class="jxr_linenumber" name="34" href="#34">34</a>  
+<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.http.FormattedHeader;
+<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.http.Header;
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HeaderElement;
+<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.NameValuePair;
+<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.http.annotation.NotThreadSafe;
+<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.utils.DateUtils;
+<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.ClientCookie;
+<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.Cookie;
+<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.CookieAttributeHandler;
+<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.CookieOrigin;
+<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.MalformedCookieException;
+<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.cookie.SM;
+<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.BasicHeaderElement;
+<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.BasicHeaderValueFormatter;
+<a class="jxr_linenumber" name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.BufferedHeader;
+<a class="jxr_linenumber" name="50" href="#50">50</a>  <strong class="jxr_keyword">import</strong> org.apache.http.message.ParserCursor;
+<a class="jxr_linenumber" name="51" href="#51">51</a>  <strong class="jxr_keyword">import</strong> org.apache.http.util.Args;
+<a class="jxr_linenumber" name="52" href="#52">52</a>  <strong class="jxr_keyword">import</strong> org.apache.http.util.CharArrayBuffer;
+<a class="jxr_linenumber" name="53" href="#53">53</a>  <strong class="jxr_keyword">import</strong> org.apache.http.util.TextUtils;
+<a class="jxr_linenumber" name="54" href="#54">54</a>  
+<a class="jxr_linenumber" name="55" href="#55">55</a>  
+<a class="jxr_linenumber" name="56" href="#56">56</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="57" href="#57">57</a>  <em class="jxr_javadoccomment"> * Cookie specification that strives to closely mimic (mis)behavior of</em>
+<a class="jxr_linenumber" name="58" href="#58">58</a>  <em class="jxr_javadoccomment"> * common web browser applications such as Microsoft Internet Explorer</em>
+<a class="jxr_linenumber" name="59" href="#59">59</a>  <em class="jxr_javadoccomment"> * and Mozilla FireFox.</em>
+<a class="jxr_linenumber" name="60" href="#60">60</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="61" href="#61">61</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="62" href="#62">62</a>  <em class="jxr_javadoccomment"> * @since 4.0</em>
+<a class="jxr_linenumber" name="63" href="#63">63</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="64" href="#64">64</a>  @NotThreadSafe <em class="jxr_comment">// superclass is @NotThreadSafe</em>
+<a class="jxr_linenumber" name="65" href="#65">65</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/http/impl/cookie/CookieSpecBase.html">CookieSpecBase</a> {
+<a class="jxr_linenumber" name="66" href="#66">66</a>  
+<a class="jxr_linenumber" name="67" href="#67">67</a>  
+<a class="jxr_linenumber" name="68" href="#68">68</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String[] DEFAULT_DATE_PATTERNS = <strong class="jxr_keyword">new</strong> String[] {
+<a class="jxr_linenumber" name="69" href="#69">69</a>          DateUtils.PATTERN_RFC1123,
+<a class="jxr_linenumber" name="70" href="#70">70</a>          DateUtils.PATTERN_RFC1036,
+<a class="jxr_linenumber" name="71" href="#71">71</a>          DateUtils.PATTERN_ASCTIME,
+<a class="jxr_linenumber" name="72" href="#72">72</a>          <span class="jxr_string">"EEE, dd-MMM-yyyy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="73" href="#73">73</a>          <span class="jxr_string">"EEE, dd-MMM-yyyy HH-mm-ss z"</span>,
+<a class="jxr_linenumber" name="74" href="#74">74</a>          <span class="jxr_string">"EEE, dd MMM yy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="75" href="#75">75</a>          <span class="jxr_string">"EEE dd-MMM-yyyy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="76" href="#76">76</a>          <span class="jxr_string">"EEE dd MMM yyyy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="77" href="#77">77</a>          <span class="jxr_string">"EEE dd-MMM-yyyy HH-mm-ss z"</span>,
+<a class="jxr_linenumber" name="78" href="#78">78</a>          <span class="jxr_string">"EEE dd-MMM-yy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="79" href="#79">79</a>          <span class="jxr_string">"EEE dd MMM yy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="80" href="#80">80</a>          <span class="jxr_string">"EEE,dd-MMM-yy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="81" href="#81">81</a>          <span class="jxr_string">"EEE,dd-MMM-yyyy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="82" href="#82">82</a>          <span class="jxr_string">"EEE, dd-MM-yyyy HH:mm:ss z"</span>,
+<a class="jxr_linenumber" name="83" href="#83">83</a>      };
+<a class="jxr_linenumber" name="84" href="#84">84</a>  
+<a class="jxr_linenumber" name="85" href="#85">85</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String[] datepatterns;
+<a class="jxr_linenumber" name="86" href="#86">86</a>  
+<a class="jxr_linenumber" name="87" href="#87">87</a>      <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default constructor */</em>
+<a class="jxr_linenumber" name="88" href="#88">88</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a>(<strong class="jxr_keyword">final</strong> String[] datepatterns, <strong class="jxr_keyword">final</strong> BrowserCompatSpecFactory.SecurityLevel securityLevel) {
+<a class="jxr_linenumber" name="89" href="#89">89</a>          <strong class="jxr_keyword">super</strong>();
+<a class="jxr_linenumber" name="90" href="#90">90</a>          <strong class="jxr_keyword">if</strong> (datepatterns != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="91" href="#91">91</a>              <strong class="jxr_keyword">this</strong>.datepatterns = datepatterns.clone();
+<a class="jxr_linenumber" name="92" href="#92">92</a>          } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="93" href="#93">93</a>              <strong class="jxr_keyword">this</strong>.datepatterns = DEFAULT_DATE_PATTERNS;
+<a class="jxr_linenumber" name="94" href="#94">94</a>          }
+<a class="jxr_linenumber" name="95" href="#95">95</a>          <strong class="jxr_keyword">switch</strong> (securityLevel) {
+<a class="jxr_linenumber" name="96" href="#96">96</a>              <strong class="jxr_keyword">case</strong> SECURITYLEVEL_DEFAULT:
+<a class="jxr_linenumber" name="97" href="#97">97</a>                  registerAttribHandler(ClientCookie.PATH_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicPathHandler.html">BasicPathHandler</a>());
+<a class="jxr_linenumber" name="98" href="#98">98</a>                  <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="99" href="#99">99</a>              <strong class="jxr_keyword">case</strong> SECURITYLEVEL_IE_MEDIUM:
+<a class="jxr_linenumber" name="100" href="#100">100</a>                 registerAttribHandler(ClientCookie.PATH_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicPathHandler.html">BasicPathHandler</a>() {
+<a class="jxr_linenumber" name="101" href="#101">101</a>                         @Override
+<a class="jxr_linenumber" name="102" href="#102">102</a>                         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> validate(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/Cookie.html">Cookie</a> cookie, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/CookieOrigin.html">CookieOrigin</a> origin) <strong class="jxr_keyword">throws</strong> MalformedCookieException {
+<a class="jxr_linenumber" name="103" href="#103">103</a>                             <em class="jxr_comment">// No validation</em>
+<a class="jxr_linenumber" name="104" href="#104">104</a>                         }
+<a class="jxr_linenumber" name="105" href="#105">105</a>                     }
+<a class="jxr_linenumber" name="106" href="#106">106</a>                 );
+<a class="jxr_linenumber" name="107" href="#107">107</a>                 <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="108" href="#108">108</a>             <strong class="jxr_keyword">default</strong>:
+<a class="jxr_linenumber" name="109" href="#109">109</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(<span class="jxr_string">"Unknown security level"</span>);
+<a class="jxr_linenumber" name="110" href="#110">110</a>         }
+<a class="jxr_linenumber" name="111" href="#111">111</a> 
+<a class="jxr_linenumber" name="112" href="#112">112</a>         registerAttribHandler(ClientCookie.DOMAIN_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicDomainHandler.html">BasicDomainHandler</a>());
+<a class="jxr_linenumber" name="113" href="#113">113</a>         registerAttribHandler(ClientCookie.MAX_AGE_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicMaxAgeHandler.html">BasicMaxAgeHandler</a>());
+<a class="jxr_linenumber" name="114" href="#114">114</a>         registerAttribHandler(ClientCookie.SECURE_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicSecureHandler.html">BasicSecureHandler</a>());
+<a class="jxr_linenumber" name="115" href="#115">115</a>         registerAttribHandler(ClientCookie.COMMENT_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicCommentHandler.html">BasicCommentHandler</a>());
+<a class="jxr_linenumber" name="116" href="#116">116</a>         registerAttribHandler(ClientCookie.EXPIRES_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicExpiresHandler.html">BasicExpiresHandler</a>(
+<a class="jxr_linenumber" name="117" href="#117">117</a>                 <strong class="jxr_keyword">this</strong>.datepatterns));
+<a class="jxr_linenumber" name="118" href="#118">118</a>         registerAttribHandler(ClientCookie.VERSION_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatVersionAttributeHandler.html">BrowserCompatVersionAttributeHandler</a>());
 <a class="jxr_linenumber" name="119" href="#119">119</a>     }
 <a class="jxr_linenumber" name="120" href="#120">120</a> 
 <a class="jxr_linenumber" name="121" href="#121">121</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default constructor */</em>
-<a class="jxr_linenumber" name="122" href="#122">122</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a>() {
-<a class="jxr_linenumber" name="123" href="#123">123</a>         <strong class="jxr_keyword">this</strong>(<strong class="jxr_keyword">null</strong>, BrowserCompatSpecFactory.SecurityLevel.SECURITYLEVEL_DEFAULT);
+<a class="jxr_linenumber" name="122" href="#122">122</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a>(<strong class="jxr_keyword">final</strong> String[] datepatterns) {
+<a class="jxr_linenumber" name="123" href="#123">123</a>         <strong class="jxr_keyword">this</strong>(datepatterns, BrowserCompatSpecFactory.SecurityLevel.SECURITYLEVEL_DEFAULT);
 <a class="jxr_linenumber" name="124" href="#124">124</a>     }
 <a class="jxr_linenumber" name="125" href="#125">125</a> 
-<a class="jxr_linenumber" name="126" href="#126">126</a>     <strong class="jxr_keyword">public</strong> List&lt;Cookie&gt; parse(<strong class="jxr_keyword">final</strong> Header header, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/CookieOrigin.html">CookieOrigin</a> origin)
-<a class="jxr_linenumber" name="127" href="#127">127</a>             <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a> {
-<a class="jxr_linenumber" name="128" href="#128">128</a>         Args.notNull(header, <span class="jxr_string">"Header"</span>);
-<a class="jxr_linenumber" name="129" href="#129">129</a>         Args.notNull(origin, <span class="jxr_string">"Cookie origin"</span>);
-<a class="jxr_linenumber" name="130" href="#130">130</a>         <strong class="jxr_keyword">final</strong> String headername = header.getName();
-<a class="jxr_linenumber" name="131" href="#131">131</a>         <strong class="jxr_keyword">if</strong> (!headername.equalsIgnoreCase(SM.SET_COOKIE)) {
-<a class="jxr_linenumber" name="132" href="#132">132</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Unrecognized cookie header '"</span>
-<a class="jxr_linenumber" name="133" href="#133">133</a>                     + header.toString() + <span class="jxr_string">"'"</span>);
-<a class="jxr_linenumber" name="134" href="#134">134</a>         }
-<a class="jxr_linenumber" name="135" href="#135">135</a>         HeaderElement[] helems = header.getElements();
-<a class="jxr_linenumber" name="136" href="#136">136</a>         <strong class="jxr_keyword">boolean</strong> versioned = false;
-<a class="jxr_linenumber" name="137" href="#137">137</a>         <strong class="jxr_keyword">boolean</strong> netscape = false;
-<a class="jxr_linenumber" name="138" href="#138">138</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> HeaderElement helem: helems) {
-<a class="jxr_linenumber" name="139" href="#139">139</a>             <strong class="jxr_keyword">if</strong> (helem.getParameterByName(<span class="jxr_string">"version"</span>) != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="140" href="#140">140</a>                 versioned = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="141" href="#141">141</a>             }
-<a class="jxr_linenumber" name="142" href="#142">142</a>             <strong class="jxr_keyword">if</strong> (helem.getParameterByName(<span class="jxr_string">"expires"</span>) != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="143" href="#143">143</a>                netscape = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="144" href="#144">144</a>             }
-<a class="jxr_linenumber" name="145" href="#145">145</a>         }
-<a class="jxr_linenumber" name="146" href="#146">146</a>         <strong class="jxr_keyword">if</strong> (netscape || !versioned) {
-<a class="jxr_linenumber" name="147" href="#147">147</a>             <em class="jxr_comment">// Need to parse the header again, because Netscape style cookies do not correctly</em>
-<a class="jxr_linenumber" name="148" href="#148">148</a>             <em class="jxr_comment">// support multiple header elements (comma cannot be treated as an element separator)</em>
-<a class="jxr_linenumber" name="149" href="#149">149</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/impl/cookie/NetscapeDraftHeaderParser.html">NetscapeDraftHeaderParser</a> parser = NetscapeDraftHeaderParser.DEFAULT;
-<a class="jxr_linenumber" name="150" href="#150">150</a>             <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer;
-<a class="jxr_linenumber" name="151" href="#151">151</a>             <strong class="jxr_keyword">final</strong> ParserCursor cursor;
-<a class="jxr_linenumber" name="152" href="#152">152</a>             <strong class="jxr_keyword">if</strong> (header instanceof FormattedHeader) {
-<a class="jxr_linenumber" name="153" href="#153">153</a>                 buffer = ((FormattedHeader) header).getBuffer();
-<a class="jxr_linenumber" name="154" href="#154">154</a>                 cursor = <strong class="jxr_keyword">new</strong> ParserCursor(
-<a class="jxr_linenumber" name="155" href="#155">155</a>                         ((FormattedHeader) header).getValuePos(),
-<a class="jxr_linenumber" name="156" href="#156">156</a>                         buffer.length());
-<a class="jxr_linenumber" name="157" href="#157">157</a>             } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="158" href="#158">158</a>                 <strong class="jxr_keyword">final</strong> String s = header.getValue();
-<a class="jxr_linenumber" name="159" href="#159">159</a>                 <strong class="jxr_keyword">if</strong> (s == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="160" href="#160">160</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Header value is null"</span>);
-<a class="jxr_linenumber" name="161" href="#161">161</a>                 }
-<a class="jxr_linenumber" name="162" href="#162">162</a>                 buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(s.length());
-<a class="jxr_linenumber" name="163" href="#163">163</a>                 buffer.append(s);
-<a class="jxr_linenumber" name="164" href="#164">164</a>                 cursor = <strong class="jxr_keyword">new</strong> ParserCursor(0, buffer.length());
-<a class="jxr_linenumber" name="165" href="#165">165</a>             }
-<a class="jxr_linenumber" name="166" href="#166">166</a>             helems = <strong class="jxr_keyword">new</strong> HeaderElement[] { parser.parseHeader(buffer, cursor) };
-<a class="jxr_linenumber" name="167" href="#167">167</a>         }
-<a class="jxr_linenumber" name="168" href="#168">168</a>         <strong class="jxr_keyword">return</strong> parse(helems, origin);
-<a class="jxr_linenumber" name="169" href="#169">169</a>     }
-<a class="jxr_linenumber" name="170" href="#170">170</a> 
-<a class="jxr_linenumber" name="171" href="#171">171</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> isQuoteEnclosed(<strong class="jxr_keyword">final</strong> String s) {
-<a class="jxr_linenumber" name="172" href="#172">172</a>         <strong class="jxr_keyword">return</strong> s != <strong class="jxr_keyword">null</strong> &amp;&amp; s.startsWith(<span class="jxr_string">"\&quot;"</span>) &amp;&amp; s.endsWith(<span class="jxr_string">"\&quot;"</span>);
-<a class="jxr_linenumber" name="173" href="#173">173</a>     }
-<a class="jxr_linenumber" name="174" href="#174">174</a> 
-<a class="jxr_linenumber" name="175" href="#175">175</a>     <strong class="jxr_keyword">public</strong> List&lt;Header&gt; formatCookies(<strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies) {
-<a class="jxr_linenumber" name="176" href="#176">176</a>         Args.notEmpty(cookies, <span class="jxr_string">"List of cookies"</span>);
-<a class="jxr_linenumber" name="177" href="#177">177</a>         <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(20 * cookies.size());
-<a class="jxr_linenumber" name="178" href="#178">178</a>         buffer.append(SM.COOKIE);
-<a class="jxr_linenumber" name="179" href="#179">179</a>         buffer.append(<span class="jxr_string">": "</span>);
-<a class="jxr_linenumber" name="180" href="#180">180</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; cookies.size(); i++) {
-<a class="jxr_linenumber" name="181" href="#181">181</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/Cookie.html">Cookie</a> cookie = cookies.get(i);
-<a class="jxr_linenumber" name="182" href="#182">182</a>             <strong class="jxr_keyword">if</strong> (i &gt; 0) {
-<a class="jxr_linenumber" name="183" href="#183">183</a>                 buffer.append(<span class="jxr_string">"; "</span>);
-<a class="jxr_linenumber" name="184" href="#184">184</a>             }
-<a class="jxr_linenumber" name="185" href="#185">185</a>             <strong class="jxr_keyword">final</strong> String cookieName = cookie.getName();
-<a class="jxr_linenumber" name="186" href="#186">186</a>             <strong class="jxr_keyword">final</strong> String cookieValue = cookie.getValue();
-<a class="jxr_linenumber" name="187" href="#187">187</a>             <strong class="jxr_keyword">if</strong> (cookie.getVersion() &gt; 0 &amp;&amp; !isQuoteEnclosed(cookieValue)) {
-<a class="jxr_linenumber" name="188" href="#188">188</a>                 BasicHeaderValueFormatter.INSTANCE.formatHeaderElement(
-<a class="jxr_linenumber" name="189" href="#189">189</a>                         buffer,
-<a class="jxr_linenumber" name="190" href="#190">190</a>                         <strong class="jxr_keyword">new</strong> BasicHeaderElement(cookieName, cookieValue),
-<a class="jxr_linenumber" name="191" href="#191">191</a>                         false);
-<a class="jxr_linenumber" name="192" href="#192">192</a>             } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="193" href="#193">193</a>                 <em class="jxr_comment">// Netscape style cookies do not support quoted values</em>
-<a class="jxr_linenumber" name="194" href="#194">194</a>                 buffer.append(cookieName);
-<a class="jxr_linenumber" name="195" href="#195">195</a>                 buffer.append(<span class="jxr_string">"="</span>);
-<a class="jxr_linenumber" name="196" href="#196">196</a>                 <strong class="jxr_keyword">if</strong> (cookieValue != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="197" href="#197">197</a>                     buffer.append(cookieValue);
-<a class="jxr_linenumber" name="198" href="#198">198</a>                 }
-<a class="jxr_linenumber" name="199" href="#199">199</a>             }
-<a class="jxr_linenumber" name="200" href="#200">200</a>         }
-<a class="jxr_linenumber" name="201" href="#201">201</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = <strong class="jxr_keyword">new</strong> ArrayList&lt;Header&gt;(1);
-<a class="jxr_linenumber" name="202" href="#202">202</a>         headers.add(<strong class="jxr_keyword">new</strong> BufferedHeader(buffer));
-<a class="jxr_linenumber" name="203" href="#203">203</a>         <strong class="jxr_keyword">return</strong> headers;
+<a class="jxr_linenumber" name="126" href="#126">126</a>     <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default constructor */</em>
+<a class="jxr_linenumber" name="127" href="#127">127</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/BrowserCompatSpec.html">BrowserCompatSpec</a>() {
+<a class="jxr_linenumber" name="128" href="#128">128</a>         <strong class="jxr_keyword">this</strong>(<strong class="jxr_keyword">null</strong>, BrowserCompatSpecFactory.SecurityLevel.SECURITYLEVEL_DEFAULT);
+<a class="jxr_linenumber" name="129" href="#129">129</a>     }
+<a class="jxr_linenumber" name="130" href="#130">130</a> 
+<a class="jxr_linenumber" name="131" href="#131">131</a>     <strong class="jxr_keyword">public</strong> List&lt;Cookie&gt; parse(<strong class="jxr_keyword">final</strong> Header header, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/CookieOrigin.html">CookieOrigin</a> origin)
+<a class="jxr_linenumber" name="132" href="#132">132</a>             <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a> {
+<a class="jxr_linenumber" name="133" href="#133">133</a>         Args.notNull(header, <span class="jxr_string">"Header"</span>);
+<a class="jxr_linenumber" name="134" href="#134">134</a>         Args.notNull(origin, <span class="jxr_string">"Cookie origin"</span>);
+<a class="jxr_linenumber" name="135" href="#135">135</a>         <strong class="jxr_keyword">final</strong> String headername = header.getName();
+<a class="jxr_linenumber" name="136" href="#136">136</a>         <strong class="jxr_keyword">if</strong> (!headername.equalsIgnoreCase(SM.SET_COOKIE)) {
+<a class="jxr_linenumber" name="137" href="#137">137</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Unrecognized cookie header '"</span>
+<a class="jxr_linenumber" name="138" href="#138">138</a>                     + header.toString() + <span class="jxr_string">"'"</span>);
+<a class="jxr_linenumber" name="139" href="#139">139</a>         }
+<a class="jxr_linenumber" name="140" href="#140">140</a>         <strong class="jxr_keyword">final</strong> HeaderElement[] helems = header.getElements();
+<a class="jxr_linenumber" name="141" href="#141">141</a>         <strong class="jxr_keyword">boolean</strong> versioned = false;
+<a class="jxr_linenumber" name="142" href="#142">142</a>         <strong class="jxr_keyword">boolean</strong> netscape = false;
+<a class="jxr_linenumber" name="143" href="#143">143</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> HeaderElement helem: helems) {
+<a class="jxr_linenumber" name="144" href="#144">144</a>             <strong class="jxr_keyword">if</strong> (helem.getParameterByName(<span class="jxr_string">"version"</span>) != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="145" href="#145">145</a>                 versioned = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="146" href="#146">146</a>             }
+<a class="jxr_linenumber" name="147" href="#147">147</a>             <strong class="jxr_keyword">if</strong> (helem.getParameterByName(<span class="jxr_string">"expires"</span>) != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="148" href="#148">148</a>                netscape = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="149" href="#149">149</a>             }
+<a class="jxr_linenumber" name="150" href="#150">150</a>         }
+<a class="jxr_linenumber" name="151" href="#151">151</a>         <strong class="jxr_keyword">if</strong> (netscape || !versioned) {
+<a class="jxr_linenumber" name="152" href="#152">152</a>             <em class="jxr_comment">// Need to parse the header again, because Netscape style cookies do not correctly</em>
+<a class="jxr_linenumber" name="153" href="#153">153</a>             <em class="jxr_comment">// support multiple header elements (comma cannot be treated as an element separator)</em>
+<a class="jxr_linenumber" name="154" href="#154">154</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/impl/cookie/NetscapeDraftHeaderParser.html">NetscapeDraftHeaderParser</a> parser = NetscapeDraftHeaderParser.DEFAULT;
+<a class="jxr_linenumber" name="155" href="#155">155</a>             <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer;
+<a class="jxr_linenumber" name="156" href="#156">156</a>             <strong class="jxr_keyword">final</strong> ParserCursor cursor;
+<a class="jxr_linenumber" name="157" href="#157">157</a>             <strong class="jxr_keyword">if</strong> (header instanceof FormattedHeader) {
+<a class="jxr_linenumber" name="158" href="#158">158</a>                 buffer = ((FormattedHeader) header).getBuffer();
+<a class="jxr_linenumber" name="159" href="#159">159</a>                 cursor = <strong class="jxr_keyword">new</strong> ParserCursor(
+<a class="jxr_linenumber" name="160" href="#160">160</a>                         ((FormattedHeader) header).getValuePos(),
+<a class="jxr_linenumber" name="161" href="#161">161</a>                         buffer.length());
+<a class="jxr_linenumber" name="162" href="#162">162</a>             } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="163" href="#163">163</a>                 <strong class="jxr_keyword">final</strong> String s = header.getValue();
+<a class="jxr_linenumber" name="164" href="#164">164</a>                 <strong class="jxr_keyword">if</strong> (s == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="165" href="#165">165</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Header value is null"</span>);
+<a class="jxr_linenumber" name="166" href="#166">166</a>                 }
+<a class="jxr_linenumber" name="167" href="#167">167</a>                 buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(s.length());
+<a class="jxr_linenumber" name="168" href="#168">168</a>                 buffer.append(s);
+<a class="jxr_linenumber" name="169" href="#169">169</a>                 cursor = <strong class="jxr_keyword">new</strong> ParserCursor(0, buffer.length());
+<a class="jxr_linenumber" name="170" href="#170">170</a>             }
+<a class="jxr_linenumber" name="171" href="#171">171</a>             <strong class="jxr_keyword">final</strong> HeaderElement elem = parser.parseHeader(buffer, cursor);
+<a class="jxr_linenumber" name="172" href="#172">172</a>             <strong class="jxr_keyword">final</strong> String name = elem.getName();
+<a class="jxr_linenumber" name="173" href="#173">173</a>             <strong class="jxr_keyword">final</strong> String value = elem.getValue();
+<a class="jxr_linenumber" name="174" href="#174">174</a>             <strong class="jxr_keyword">if</strong> (name == <strong class="jxr_keyword">null</strong> || TextUtils.isBlank(name)) {
+<a class="jxr_linenumber" name="175" href="#175">175</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Cookie name may not be empty"</span>);
+<a class="jxr_linenumber" name="176" href="#176">176</a>             }
+<a class="jxr_linenumber" name="177" href="#177">177</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicClientCookie.html">BasicClientCookie</a> cookie = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicClientCookie.html">BasicClientCookie</a>(name, value);
+<a class="jxr_linenumber" name="178" href="#178">178</a>             cookie.setPath(getDefaultPath(origin));
+<a class="jxr_linenumber" name="179" href="#179">179</a>             cookie.setDomain(getDefaultDomain(origin));
+<a class="jxr_linenumber" name="180" href="#180">180</a> 
+<a class="jxr_linenumber" name="181" href="#181">181</a>             <em class="jxr_comment">// cycle through the parameters</em>
+<a class="jxr_linenumber" name="182" href="#182">182</a>             <strong class="jxr_keyword">final</strong> NameValuePair[] attribs = elem.getParameters();
+<a class="jxr_linenumber" name="183" href="#183">183</a>             <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> j = attribs.length - 1; j &gt;= 0; j--) {
+<a class="jxr_linenumber" name="184" href="#184">184</a>                 <strong class="jxr_keyword">final</strong> NameValuePair attrib = attribs[j];
+<a class="jxr_linenumber" name="185" href="#185">185</a>                 <strong class="jxr_keyword">final</strong> String s = attrib.getName().toLowerCase(Locale.ENGLISH);
+<a class="jxr_linenumber" name="186" href="#186">186</a>                 cookie.setAttribute(s, attrib.getValue());
+<a class="jxr_linenumber" name="187" href="#187">187</a>                 <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/CookieAttributeHandler.html">CookieAttributeHandler</a> handler = findAttribHandler(s);
+<a class="jxr_linenumber" name="188" href="#188">188</a>                 <strong class="jxr_keyword">if</strong> (handler != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="189" href="#189">189</a>                     handler.parse(cookie, attrib.getValue());
+<a class="jxr_linenumber" name="190" href="#190">190</a>                 }
+<a class="jxr_linenumber" name="191" href="#191">191</a>             }
+<a class="jxr_linenumber" name="192" href="#192">192</a>             <em class="jxr_comment">// Override version for Netscape style cookies</em>
+<a class="jxr_linenumber" name="193" href="#193">193</a>             <strong class="jxr_keyword">if</strong> (netscape) {
+<a class="jxr_linenumber" name="194" href="#194">194</a>                 cookie.setVersion(0);
+<a class="jxr_linenumber" name="195" href="#195">195</a>             }
+<a class="jxr_linenumber" name="196" href="#196">196</a>             <strong class="jxr_keyword">return</strong> Collections.&lt;Cookie&gt;singletonList(cookie);
+<a class="jxr_linenumber" name="197" href="#197">197</a>         } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="198" href="#198">198</a>             <strong class="jxr_keyword">return</strong> parse(helems, origin);
+<a class="jxr_linenumber" name="199" href="#199">199</a>         }
+<a class="jxr_linenumber" name="200" href="#200">200</a>     }
+<a class="jxr_linenumber" name="201" href="#201">201</a> 
+<a class="jxr_linenumber" name="202" href="#202">202</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">boolean</strong> isQuoteEnclosed(<strong class="jxr_keyword">final</strong> String s) {
+<a class="jxr_linenumber" name="203" href="#203">203</a>         <strong class="jxr_keyword">return</strong> s != <strong class="jxr_keyword">null</strong> &amp;&amp; s.startsWith(<span class="jxr_string">"\&quot;"</span>) &amp;&amp; s.endsWith(<span class="jxr_string">"\&quot;"</span>);
 <a class="jxr_linenumber" name="204" href="#204">204</a>     }
 <a class="jxr_linenumber" name="205" href="#205">205</a> 
-<a class="jxr_linenumber" name="206" href="#206">206</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getVersion() {
-<a class="jxr_linenumber" name="207" href="#207">207</a>         <strong class="jxr_keyword">return</strong> 0;
-<a class="jxr_linenumber" name="208" href="#208">208</a>     }
-<a class="jxr_linenumber" name="209" href="#209">209</a> 
-<a class="jxr_linenumber" name="210" href="#210">210</a>     <strong class="jxr_keyword">public</strong> Header getVersionHeader() {
-<a class="jxr_linenumber" name="211" href="#211">211</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="212" href="#212">212</a>     }
-<a class="jxr_linenumber" name="213" href="#213">213</a> 
-<a class="jxr_linenumber" name="214" href="#214">214</a>     @Override
-<a class="jxr_linenumber" name="215" href="#215">215</a>     <strong class="jxr_keyword">public</strong> String toString() {
-<a class="jxr_linenumber" name="216" href="#216">216</a>         <strong class="jxr_keyword">return</strong> <span class="jxr_string">"compatibility"</span>;
-<a class="jxr_linenumber" name="217" href="#217">217</a>     }
-<a class="jxr_linenumber" name="218" href="#218">218</a> 
-<a class="jxr_linenumber" name="219" href="#219">219</a> }
+<a class="jxr_linenumber" name="206" href="#206">206</a>     <strong class="jxr_keyword">public</strong> List&lt;Header&gt; formatCookies(<strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies) {
+<a class="jxr_linenumber" name="207" href="#207">207</a>         Args.notEmpty(cookies, <span class="jxr_string">"List of cookies"</span>);
+<a class="jxr_linenumber" name="208" href="#208">208</a>         <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(20 * cookies.size());
+<a class="jxr_linenumber" name="209" href="#209">209</a>         buffer.append(SM.COOKIE);
+<a class="jxr_linenumber" name="210" href="#210">210</a>         buffer.append(<span class="jxr_string">": "</span>);
+<a class="jxr_linenumber" name="211" href="#211">211</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; cookies.size(); i++) {
+<a class="jxr_linenumber" name="212" href="#212">212</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/Cookie.html">Cookie</a> cookie = cookies.get(i);
+<a class="jxr_linenumber" name="213" href="#213">213</a>             <strong class="jxr_keyword">if</strong> (i &gt; 0) {
+<a class="jxr_linenumber" name="214" href="#214">214</a>                 buffer.append(<span class="jxr_string">"; "</span>);
+<a class="jxr_linenumber" name="215" href="#215">215</a>             }
+<a class="jxr_linenumber" name="216" href="#216">216</a>             <strong class="jxr_keyword">final</strong> String cookieName = cookie.getName();
+<a class="jxr_linenumber" name="217" href="#217">217</a>             <strong class="jxr_keyword">final</strong> String cookieValue = cookie.getValue();
+<a class="jxr_linenumber" name="218" href="#218">218</a>             <strong class="jxr_keyword">if</strong> (cookie.getVersion() &gt; 0 &amp;&amp; !isQuoteEnclosed(cookieValue)) {
+<a class="jxr_linenumber" name="219" href="#219">219</a>                 BasicHeaderValueFormatter.INSTANCE.formatHeaderElement(
+<a class="jxr_linenumber" name="220" href="#220">220</a>                         buffer,
+<a class="jxr_linenumber" name="221" href="#221">221</a>                         <strong class="jxr_keyword">new</strong> BasicHeaderElement(cookieName, cookieValue),
+<a class="jxr_linenumber" name="222" href="#222">222</a>                         false);
+<a class="jxr_linenumber" name="223" href="#223">223</a>             } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="224" href="#224">224</a>                 <em class="jxr_comment">// Netscape style cookies do not support quoted values</em>
+<a class="jxr_linenumber" name="225" href="#225">225</a>                 buffer.append(cookieName);
+<a class="jxr_linenumber" name="226" href="#226">226</a>                 buffer.append(<span class="jxr_string">"="</span>);
+<a class="jxr_linenumber" name="227" href="#227">227</a>                 <strong class="jxr_keyword">if</strong> (cookieValue != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="228" href="#228">228</a>                     buffer.append(cookieValue);
+<a class="jxr_linenumber" name="229" href="#229">229</a>                 }
+<a class="jxr_linenumber" name="230" href="#230">230</a>             }
+<a class="jxr_linenumber" name="231" href="#231">231</a>         }
+<a class="jxr_linenumber" name="232" href="#232">232</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = <strong class="jxr_keyword">new</strong> ArrayList&lt;Header&gt;(1);
+<a class="jxr_linenumber" name="233" href="#233">233</a>         headers.add(<strong class="jxr_keyword">new</strong> BufferedHeader(buffer));
+<a class="jxr_linenumber" name="234" href="#234">234</a>         <strong class="jxr_keyword">return</strong> headers;
+<a class="jxr_linenumber" name="235" href="#235">235</a>     }
+<a class="jxr_linenumber" name="236" href="#236">236</a> 
+<a class="jxr_linenumber" name="237" href="#237">237</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getVersion() {
+<a class="jxr_linenumber" name="238" href="#238">238</a>         <strong class="jxr_keyword">return</strong> 0;
+<a class="jxr_linenumber" name="239" href="#239">239</a>     }
+<a class="jxr_linenumber" name="240" href="#240">240</a> 
+<a class="jxr_linenumber" name="241" href="#241">241</a>     <strong class="jxr_keyword">public</strong> Header getVersionHeader() {
+<a class="jxr_linenumber" name="242" href="#242">242</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="243" href="#243">243</a>     }
+<a class="jxr_linenumber" name="244" href="#244">244</a> 
+<a class="jxr_linenumber" name="245" href="#245">245</a>     @Override
+<a class="jxr_linenumber" name="246" href="#246">246</a>     <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="247" href="#247">247</a>         <strong class="jxr_keyword">return</strong> <span class="jxr_string">"compatibility"</span>;
+<a class="jxr_linenumber" name="248" href="#248">248</a>     }
+<a class="jxr_linenumber" name="249" href="#249">249</a> 
+<a class="jxr_linenumber" name="250" href="#250">250</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/NetscapeDraftSpec.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/NetscapeDraftSpec.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/NetscapeDraftSpec.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/NetscapeDraftSpec.html Thu Nov  6 14:29:37 2014
@@ -79,106 +79,105 @@
 <a class="jxr_linenumber" name="69" href="#69">69</a>          }
 <a class="jxr_linenumber" name="70" href="#70">70</a>          registerAttribHandler(ClientCookie.PATH_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicPathHandler.html">BasicPathHandler</a>());
 <a class="jxr_linenumber" name="71" href="#71">71</a>          registerAttribHandler(ClientCookie.DOMAIN_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/NetscapeDomainHandler.html">NetscapeDomainHandler</a>());
-<a class="jxr_linenumber" name="72" href="#72">72</a>          registerAttribHandler(ClientCookie.MAX_AGE_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicMaxAgeHandler.html">BasicMaxAgeHandler</a>());
-<a class="jxr_linenumber" name="73" href="#73">73</a>          registerAttribHandler(ClientCookie.SECURE_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicSecureHandler.html">BasicSecureHandler</a>());
-<a class="jxr_linenumber" name="74" href="#74">74</a>          registerAttribHandler(ClientCookie.COMMENT_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicCommentHandler.html">BasicCommentHandler</a>());
-<a class="jxr_linenumber" name="75" href="#75">75</a>          registerAttribHandler(ClientCookie.EXPIRES_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicExpiresHandler.html">BasicExpiresHandler</a>(
-<a class="jxr_linenumber" name="76" href="#76">76</a>                  <strong class="jxr_keyword">this</strong>.datepatterns));
-<a class="jxr_linenumber" name="77" href="#77">77</a>      }
-<a class="jxr_linenumber" name="78" href="#78">78</a>  
-<a class="jxr_linenumber" name="79" href="#79">79</a>      <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default constructor */</em>
-<a class="jxr_linenumber" name="80" href="#80">80</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/NetscapeDraftSpec.html">NetscapeDraftSpec</a>() {
-<a class="jxr_linenumber" name="81" href="#81">81</a>          <strong class="jxr_keyword">this</strong>(<strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="82" href="#82">82</a>      }
-<a class="jxr_linenumber" name="83" href="#83">83</a>  
-<a class="jxr_linenumber" name="84" href="#84">84</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="85" href="#85">85</a>  <em class="jxr_javadoccomment">      * Parses the Set-Cookie value into an array of &lt;tt&gt;Cookie&lt;/tt&gt;s.</em>
-<a class="jxr_linenumber" name="86" href="#86">86</a>  <em class="jxr_javadoccomment">      *</em>
-<a class="jxr_linenumber" name="87" href="#87">87</a>  <em class="jxr_javadoccomment">      * &lt;p&gt;Syntax of the Set-Cookie HTTP Response Header:&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="88" href="#88">88</a>  <em class="jxr_javadoccomment">      *</em>
-<a class="jxr_linenumber" name="89" href="#89">89</a>  <em class="jxr_javadoccomment">      * &lt;p&gt;This is the format a CGI script would use to add to</em>
-<a class="jxr_linenumber" name="90" href="#90">90</a>  <em class="jxr_javadoccomment">      * the HTTP headers a new piece of data which is to be stored by</em>
-<a class="jxr_linenumber" name="91" href="#91">91</a>  <em class="jxr_javadoccomment">      * the client for later retrieval.&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="92" href="#92">92</a>  <em class="jxr_javadoccomment">      *</em>
-<a class="jxr_linenumber" name="93" href="#93">93</a>  <em class="jxr_javadoccomment">      * &lt;PRE&gt;</em>
-<a class="jxr_linenumber" name="94" href="#94">94</a>  <em class="jxr_javadoccomment">      *  Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure</em>
-<a class="jxr_linenumber" name="95" href="#95">95</a>  <em class="jxr_javadoccomment">      * &lt;/PRE&gt;</em>
-<a class="jxr_linenumber" name="96" href="#96">96</a>  <em class="jxr_javadoccomment">      *</em>
-<a class="jxr_linenumber" name="97" href="#97">97</a>  <em class="jxr_javadoccomment">      * &lt;p&gt;Please note that the Netscape draft specification does not fully conform to the HTTP</em>
-<a class="jxr_linenumber" name="98" href="#98">98</a>  <em class="jxr_javadoccomment">      * header format. Comma character if present in &lt;code&gt;Set-Cookie&lt;/code&gt; will not be treated</em>
-<a class="jxr_linenumber" name="99" href="#99">99</a>  <em class="jxr_javadoccomment">      * as a header element separator&lt;/p&gt;</em>
-<a class="jxr_linenumber" name="100" href="#100">100</a> <em class="jxr_javadoccomment">      *</em>
-<a class="jxr_linenumber" name="101" href="#101">101</a> <em class="jxr_javadoccomment">      * @see &lt;a href="<a href="http://web.archive.org/web/20020803110822/http://wp.netscape.com/newsref/std/cookie_spec.html" target="alexandria_uri">http://web.archive.org/web/20020803110822/http://wp.netscape.com/newsref/std/cookie_spec.html</a>"&gt;</em>
-<a class="jxr_linenumber" name="102" href="#102">102</a> <em class="jxr_javadoccomment">      *  The Cookie Spec.&lt;/a&gt;</em>
-<a class="jxr_linenumber" name="103" href="#103">103</a> <em class="jxr_javadoccomment">      *</em>
-<a class="jxr_linenumber" name="104" href="#104">104</a> <em class="jxr_javadoccomment">      * @param header the &lt;tt&gt;Set-Cookie&lt;/tt&gt; received from the server</em>
-<a class="jxr_linenumber" name="105" href="#105">105</a> <em class="jxr_javadoccomment">      * @return an array of &lt;tt&gt;Cookie&lt;/tt&gt;s parsed from the Set-Cookie value</em>
-<a class="jxr_linenumber" name="106" href="#106">106</a> <em class="jxr_javadoccomment">      * @throws MalformedCookieException if an exception occurs during parsing</em>
-<a class="jxr_linenumber" name="107" href="#107">107</a> <em class="jxr_javadoccomment">      */</em>
-<a class="jxr_linenumber" name="108" href="#108">108</a>     <strong class="jxr_keyword">public</strong> List&lt;Cookie&gt; parse(<strong class="jxr_keyword">final</strong> Header header, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/CookieOrigin.html">CookieOrigin</a> origin)
-<a class="jxr_linenumber" name="109" href="#109">109</a>             <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a> {
-<a class="jxr_linenumber" name="110" href="#110">110</a>         Args.notNull(header, <span class="jxr_string">"Header"</span>);
-<a class="jxr_linenumber" name="111" href="#111">111</a>         Args.notNull(origin, <span class="jxr_string">"Cookie origin"</span>);
-<a class="jxr_linenumber" name="112" href="#112">112</a>         <strong class="jxr_keyword">if</strong> (!header.getName().equalsIgnoreCase(SM.SET_COOKIE)) {
-<a class="jxr_linenumber" name="113" href="#113">113</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Unrecognized cookie header '"</span>
-<a class="jxr_linenumber" name="114" href="#114">114</a>                     + header.toString() + <span class="jxr_string">"'"</span>);
-<a class="jxr_linenumber" name="115" href="#115">115</a>         }
-<a class="jxr_linenumber" name="116" href="#116">116</a>         <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/impl/cookie/NetscapeDraftHeaderParser.html">NetscapeDraftHeaderParser</a> parser = NetscapeDraftHeaderParser.DEFAULT;
-<a class="jxr_linenumber" name="117" href="#117">117</a>         <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer;
-<a class="jxr_linenumber" name="118" href="#118">118</a>         <strong class="jxr_keyword">final</strong> ParserCursor cursor;
-<a class="jxr_linenumber" name="119" href="#119">119</a>         <strong class="jxr_keyword">if</strong> (header instanceof FormattedHeader) {
-<a class="jxr_linenumber" name="120" href="#120">120</a>             buffer = ((FormattedHeader) header).getBuffer();
-<a class="jxr_linenumber" name="121" href="#121">121</a>             cursor = <strong class="jxr_keyword">new</strong> ParserCursor(
-<a class="jxr_linenumber" name="122" href="#122">122</a>                     ((FormattedHeader) header).getValuePos(),
-<a class="jxr_linenumber" name="123" href="#123">123</a>                     buffer.length());
-<a class="jxr_linenumber" name="124" href="#124">124</a>         } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="125" href="#125">125</a>             <strong class="jxr_keyword">final</strong> String s = header.getValue();
-<a class="jxr_linenumber" name="126" href="#126">126</a>             <strong class="jxr_keyword">if</strong> (s == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="127" href="#127">127</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Header value is null"</span>);
-<a class="jxr_linenumber" name="128" href="#128">128</a>             }
-<a class="jxr_linenumber" name="129" href="#129">129</a>             buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(s.length());
-<a class="jxr_linenumber" name="130" href="#130">130</a>             buffer.append(s);
-<a class="jxr_linenumber" name="131" href="#131">131</a>             cursor = <strong class="jxr_keyword">new</strong> ParserCursor(0, buffer.length());
-<a class="jxr_linenumber" name="132" href="#132">132</a>         }
-<a class="jxr_linenumber" name="133" href="#133">133</a>         <strong class="jxr_keyword">return</strong> parse(<strong class="jxr_keyword">new</strong> HeaderElement[] { parser.parseHeader(buffer, cursor) }, origin);
-<a class="jxr_linenumber" name="134" href="#134">134</a>     }
-<a class="jxr_linenumber" name="135" href="#135">135</a> 
-<a class="jxr_linenumber" name="136" href="#136">136</a>     <strong class="jxr_keyword">public</strong> List&lt;Header&gt; formatCookies(<strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies) {
-<a class="jxr_linenumber" name="137" href="#137">137</a>         Args.notEmpty(cookies, <span class="jxr_string">"List of cookies"</span>);
-<a class="jxr_linenumber" name="138" href="#138">138</a>         <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(20 * cookies.size());
-<a class="jxr_linenumber" name="139" href="#139">139</a>         buffer.append(SM.COOKIE);
-<a class="jxr_linenumber" name="140" href="#140">140</a>         buffer.append(<span class="jxr_string">": "</span>);
-<a class="jxr_linenumber" name="141" href="#141">141</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; cookies.size(); i++) {
-<a class="jxr_linenumber" name="142" href="#142">142</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/Cookie.html">Cookie</a> cookie = cookies.get(i);
-<a class="jxr_linenumber" name="143" href="#143">143</a>             <strong class="jxr_keyword">if</strong> (i &gt; 0) {
-<a class="jxr_linenumber" name="144" href="#144">144</a>                 buffer.append(<span class="jxr_string">"; "</span>);
-<a class="jxr_linenumber" name="145" href="#145">145</a>             }
-<a class="jxr_linenumber" name="146" href="#146">146</a>             buffer.append(cookie.getName());
-<a class="jxr_linenumber" name="147" href="#147">147</a>             <strong class="jxr_keyword">final</strong> String s = cookie.getValue();
-<a class="jxr_linenumber" name="148" href="#148">148</a>             <strong class="jxr_keyword">if</strong> (s != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="149" href="#149">149</a>                 buffer.append(<span class="jxr_string">"="</span>);
-<a class="jxr_linenumber" name="150" href="#150">150</a>                 buffer.append(s);
-<a class="jxr_linenumber" name="151" href="#151">151</a>             }
-<a class="jxr_linenumber" name="152" href="#152">152</a>         }
-<a class="jxr_linenumber" name="153" href="#153">153</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = <strong class="jxr_keyword">new</strong> ArrayList&lt;Header&gt;(1);
-<a class="jxr_linenumber" name="154" href="#154">154</a>         headers.add(<strong class="jxr_keyword">new</strong> BufferedHeader(buffer));
-<a class="jxr_linenumber" name="155" href="#155">155</a>         <strong class="jxr_keyword">return</strong> headers;
-<a class="jxr_linenumber" name="156" href="#156">156</a>     }
-<a class="jxr_linenumber" name="157" href="#157">157</a> 
-<a class="jxr_linenumber" name="158" href="#158">158</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getVersion() {
-<a class="jxr_linenumber" name="159" href="#159">159</a>         <strong class="jxr_keyword">return</strong> 0;
-<a class="jxr_linenumber" name="160" href="#160">160</a>     }
-<a class="jxr_linenumber" name="161" href="#161">161</a> 
-<a class="jxr_linenumber" name="162" href="#162">162</a>     <strong class="jxr_keyword">public</strong> Header getVersionHeader() {
-<a class="jxr_linenumber" name="163" href="#163">163</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="164" href="#164">164</a>     }
-<a class="jxr_linenumber" name="165" href="#165">165</a> 
-<a class="jxr_linenumber" name="166" href="#166">166</a>     @Override
-<a class="jxr_linenumber" name="167" href="#167">167</a>     <strong class="jxr_keyword">public</strong> String toString() {
-<a class="jxr_linenumber" name="168" href="#168">168</a>         <strong class="jxr_keyword">return</strong> <span class="jxr_string">"netscape"</span>;
-<a class="jxr_linenumber" name="169" href="#169">169</a>     }
-<a class="jxr_linenumber" name="170" href="#170">170</a> 
-<a class="jxr_linenumber" name="171" href="#171">171</a> }
+<a class="jxr_linenumber" name="72" href="#72">72</a>          registerAttribHandler(ClientCookie.SECURE_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicSecureHandler.html">BasicSecureHandler</a>());
+<a class="jxr_linenumber" name="73" href="#73">73</a>          registerAttribHandler(ClientCookie.COMMENT_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicCommentHandler.html">BasicCommentHandler</a>());
+<a class="jxr_linenumber" name="74" href="#74">74</a>          registerAttribHandler(ClientCookie.EXPIRES_ATTR, <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/impl/cookie/BasicExpiresHandler.html">BasicExpiresHandler</a>(
+<a class="jxr_linenumber" name="75" href="#75">75</a>                  <strong class="jxr_keyword">this</strong>.datepatterns));
+<a class="jxr_linenumber" name="76" href="#76">76</a>      }
+<a class="jxr_linenumber" name="77" href="#77">77</a>  
+<a class="jxr_linenumber" name="78" href="#78">78</a>      <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Default constructor */</em>
+<a class="jxr_linenumber" name="79" href="#79">79</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/http/impl/cookie/NetscapeDraftSpec.html">NetscapeDraftSpec</a>() {
+<a class="jxr_linenumber" name="80" href="#80">80</a>          <strong class="jxr_keyword">this</strong>(<strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="81" href="#81">81</a>      }
+<a class="jxr_linenumber" name="82" href="#82">82</a>  
+<a class="jxr_linenumber" name="83" href="#83">83</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="84" href="#84">84</a>  <em class="jxr_javadoccomment">      * Parses the Set-Cookie value into an array of &lt;tt&gt;Cookie&lt;/tt&gt;s.</em>
+<a class="jxr_linenumber" name="85" href="#85">85</a>  <em class="jxr_javadoccomment">      *</em>
+<a class="jxr_linenumber" name="86" href="#86">86</a>  <em class="jxr_javadoccomment">      * &lt;p&gt;Syntax of the Set-Cookie HTTP Response Header:&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="87" href="#87">87</a>  <em class="jxr_javadoccomment">      *</em>
+<a class="jxr_linenumber" name="88" href="#88">88</a>  <em class="jxr_javadoccomment">      * &lt;p&gt;This is the format a CGI script would use to add to</em>
+<a class="jxr_linenumber" name="89" href="#89">89</a>  <em class="jxr_javadoccomment">      * the HTTP headers a new piece of data which is to be stored by</em>
+<a class="jxr_linenumber" name="90" href="#90">90</a>  <em class="jxr_javadoccomment">      * the client for later retrieval.&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="91" href="#91">91</a>  <em class="jxr_javadoccomment">      *</em>
+<a class="jxr_linenumber" name="92" href="#92">92</a>  <em class="jxr_javadoccomment">      * &lt;PRE&gt;</em>
+<a class="jxr_linenumber" name="93" href="#93">93</a>  <em class="jxr_javadoccomment">      *  Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure</em>
+<a class="jxr_linenumber" name="94" href="#94">94</a>  <em class="jxr_javadoccomment">      * &lt;/PRE&gt;</em>
+<a class="jxr_linenumber" name="95" href="#95">95</a>  <em class="jxr_javadoccomment">      *</em>
+<a class="jxr_linenumber" name="96" href="#96">96</a>  <em class="jxr_javadoccomment">      * &lt;p&gt;Please note that the Netscape draft specification does not fully conform to the HTTP</em>
+<a class="jxr_linenumber" name="97" href="#97">97</a>  <em class="jxr_javadoccomment">      * header format. Comma character if present in &lt;code&gt;Set-Cookie&lt;/code&gt; will not be treated</em>
+<a class="jxr_linenumber" name="98" href="#98">98</a>  <em class="jxr_javadoccomment">      * as a header element separator&lt;/p&gt;</em>
+<a class="jxr_linenumber" name="99" href="#99">99</a>  <em class="jxr_javadoccomment">      *</em>
+<a class="jxr_linenumber" name="100" href="#100">100</a> <em class="jxr_javadoccomment">      * @see &lt;a href="<a href="http://web.archive.org/web/20020803110822/http://wp.netscape.com/newsref/std/cookie_spec.html" target="alexandria_uri">http://web.archive.org/web/20020803110822/http://wp.netscape.com/newsref/std/cookie_spec.html</a>"&gt;</em>
+<a class="jxr_linenumber" name="101" href="#101">101</a> <em class="jxr_javadoccomment">      *  The Cookie Spec.&lt;/a&gt;</em>
+<a class="jxr_linenumber" name="102" href="#102">102</a> <em class="jxr_javadoccomment">      *</em>
+<a class="jxr_linenumber" name="103" href="#103">103</a> <em class="jxr_javadoccomment">      * @param header the &lt;tt&gt;Set-Cookie&lt;/tt&gt; received from the server</em>
+<a class="jxr_linenumber" name="104" href="#104">104</a> <em class="jxr_javadoccomment">      * @return an array of &lt;tt&gt;Cookie&lt;/tt&gt;s parsed from the Set-Cookie value</em>
+<a class="jxr_linenumber" name="105" href="#105">105</a> <em class="jxr_javadoccomment">      * @throws MalformedCookieException if an exception occurs during parsing</em>
+<a class="jxr_linenumber" name="106" href="#106">106</a> <em class="jxr_javadoccomment">      */</em>
+<a class="jxr_linenumber" name="107" href="#107">107</a>     <strong class="jxr_keyword">public</strong> List&lt;Cookie&gt; parse(<strong class="jxr_keyword">final</strong> Header header, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/CookieOrigin.html">CookieOrigin</a> origin)
+<a class="jxr_linenumber" name="108" href="#108">108</a>             <strong class="jxr_keyword">throws</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a> {
+<a class="jxr_linenumber" name="109" href="#109">109</a>         Args.notNull(header, <span class="jxr_string">"Header"</span>);
+<a class="jxr_linenumber" name="110" href="#110">110</a>         Args.notNull(origin, <span class="jxr_string">"Cookie origin"</span>);
+<a class="jxr_linenumber" name="111" href="#111">111</a>         <strong class="jxr_keyword">if</strong> (!header.getName().equalsIgnoreCase(SM.SET_COOKIE)) {
+<a class="jxr_linenumber" name="112" href="#112">112</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Unrecognized cookie header '"</span>
+<a class="jxr_linenumber" name="113" href="#113">113</a>                     + header.toString() + <span class="jxr_string">"'"</span>);
+<a class="jxr_linenumber" name="114" href="#114">114</a>         }
+<a class="jxr_linenumber" name="115" href="#115">115</a>         <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/impl/cookie/NetscapeDraftHeaderParser.html">NetscapeDraftHeaderParser</a> parser = NetscapeDraftHeaderParser.DEFAULT;
+<a class="jxr_linenumber" name="116" href="#116">116</a>         <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer;
+<a class="jxr_linenumber" name="117" href="#117">117</a>         <strong class="jxr_keyword">final</strong> ParserCursor cursor;
+<a class="jxr_linenumber" name="118" href="#118">118</a>         <strong class="jxr_keyword">if</strong> (header instanceof FormattedHeader) {
+<a class="jxr_linenumber" name="119" href="#119">119</a>             buffer = ((FormattedHeader) header).getBuffer();
+<a class="jxr_linenumber" name="120" href="#120">120</a>             cursor = <strong class="jxr_keyword">new</strong> ParserCursor(
+<a class="jxr_linenumber" name="121" href="#121">121</a>                     ((FormattedHeader) header).getValuePos(),
+<a class="jxr_linenumber" name="122" href="#122">122</a>                     buffer.length());
+<a class="jxr_linenumber" name="123" href="#123">123</a>         } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="124" href="#124">124</a>             <strong class="jxr_keyword">final</strong> String s = header.getValue();
+<a class="jxr_linenumber" name="125" href="#125">125</a>             <strong class="jxr_keyword">if</strong> (s == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="126" href="#126">126</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/http/cookie/MalformedCookieException.html">MalformedCookieException</a>(<span class="jxr_string">"Header value is null"</span>);
+<a class="jxr_linenumber" name="127" href="#127">127</a>             }
+<a class="jxr_linenumber" name="128" href="#128">128</a>             buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(s.length());
+<a class="jxr_linenumber" name="129" href="#129">129</a>             buffer.append(s);
+<a class="jxr_linenumber" name="130" href="#130">130</a>             cursor = <strong class="jxr_keyword">new</strong> ParserCursor(0, buffer.length());
+<a class="jxr_linenumber" name="131" href="#131">131</a>         }
+<a class="jxr_linenumber" name="132" href="#132">132</a>         <strong class="jxr_keyword">return</strong> parse(<strong class="jxr_keyword">new</strong> HeaderElement[] { parser.parseHeader(buffer, cursor) }, origin);
+<a class="jxr_linenumber" name="133" href="#133">133</a>     }
+<a class="jxr_linenumber" name="134" href="#134">134</a> 
+<a class="jxr_linenumber" name="135" href="#135">135</a>     <strong class="jxr_keyword">public</strong> List&lt;Header&gt; formatCookies(<strong class="jxr_keyword">final</strong> List&lt;Cookie&gt; cookies) {
+<a class="jxr_linenumber" name="136" href="#136">136</a>         Args.notEmpty(cookies, <span class="jxr_string">"List of cookies"</span>);
+<a class="jxr_linenumber" name="137" href="#137">137</a>         <strong class="jxr_keyword">final</strong> CharArrayBuffer buffer = <strong class="jxr_keyword">new</strong> CharArrayBuffer(20 * cookies.size());
+<a class="jxr_linenumber" name="138" href="#138">138</a>         buffer.append(SM.COOKIE);
+<a class="jxr_linenumber" name="139" href="#139">139</a>         buffer.append(<span class="jxr_string">": "</span>);
+<a class="jxr_linenumber" name="140" href="#140">140</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; cookies.size(); i++) {
+<a class="jxr_linenumber" name="141" href="#141">141</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/http/cookie/Cookie.html">Cookie</a> cookie = cookies.get(i);
+<a class="jxr_linenumber" name="142" href="#142">142</a>             <strong class="jxr_keyword">if</strong> (i &gt; 0) {
+<a class="jxr_linenumber" name="143" href="#143">143</a>                 buffer.append(<span class="jxr_string">"; "</span>);
+<a class="jxr_linenumber" name="144" href="#144">144</a>             }
+<a class="jxr_linenumber" name="145" href="#145">145</a>             buffer.append(cookie.getName());
+<a class="jxr_linenumber" name="146" href="#146">146</a>             <strong class="jxr_keyword">final</strong> String s = cookie.getValue();
+<a class="jxr_linenumber" name="147" href="#147">147</a>             <strong class="jxr_keyword">if</strong> (s != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="148" href="#148">148</a>                 buffer.append(<span class="jxr_string">"="</span>);
+<a class="jxr_linenumber" name="149" href="#149">149</a>                 buffer.append(s);
+<a class="jxr_linenumber" name="150" href="#150">150</a>             }
+<a class="jxr_linenumber" name="151" href="#151">151</a>         }
+<a class="jxr_linenumber" name="152" href="#152">152</a>         <strong class="jxr_keyword">final</strong> List&lt;Header&gt; headers = <strong class="jxr_keyword">new</strong> ArrayList&lt;Header&gt;(1);
+<a class="jxr_linenumber" name="153" href="#153">153</a>         headers.add(<strong class="jxr_keyword">new</strong> BufferedHeader(buffer));
+<a class="jxr_linenumber" name="154" href="#154">154</a>         <strong class="jxr_keyword">return</strong> headers;
+<a class="jxr_linenumber" name="155" href="#155">155</a>     }
+<a class="jxr_linenumber" name="156" href="#156">156</a> 
+<a class="jxr_linenumber" name="157" href="#157">157</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> getVersion() {
+<a class="jxr_linenumber" name="158" href="#158">158</a>         <strong class="jxr_keyword">return</strong> 0;
+<a class="jxr_linenumber" name="159" href="#159">159</a>     }
+<a class="jxr_linenumber" name="160" href="#160">160</a> 
+<a class="jxr_linenumber" name="161" href="#161">161</a>     <strong class="jxr_keyword">public</strong> Header getVersionHeader() {
+<a class="jxr_linenumber" name="162" href="#162">162</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="163" href="#163">163</a>     }
+<a class="jxr_linenumber" name="164" href="#164">164</a> 
+<a class="jxr_linenumber" name="165" href="#165">165</a>     @Override
+<a class="jxr_linenumber" name="166" href="#166">166</a>     <strong class="jxr_keyword">public</strong> String toString() {
+<a class="jxr_linenumber" name="167" href="#167">167</a>         <strong class="jxr_keyword">return</strong> <span class="jxr_string">"netscape"</span>;
+<a class="jxr_linenumber" name="168" href="#168">168</a>     }
+<a class="jxr_linenumber" name="169" href="#169">169</a> 
+<a class="jxr_linenumber" name="170" href="#170">170</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-frame.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-frame.html Thu Nov  6 14:29:37 2014
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpClient 4.3.5 Reference Package org.apache.http.impl.cookie</title>
+		<title>Apache HttpClient 4.3.6 Reference Package org.apache.http.impl.cookie</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-summary.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-summary.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/cookie/package-summary.html Thu Nov  6 14:29:37 2014
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpClient 4.3.5 Reference Package org.apache.http.impl.cookie</title>
+		<title>Apache HttpClient 4.3.6 Reference Package org.apache.http.impl.cookie</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/execchain/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/execchain/package-frame.html?rev=1637120&r1=1637119&r2=1637120&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/execchain/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/execchain/package-frame.html Thu Nov  6 14:29:37 2014
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpClient 4.3.5 Reference Package org.apache.http.impl.execchain</title>
+		<title>Apache HttpClient 4.3.6 Reference Package org.apache.http.impl.execchain</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>



Mime
View raw message