Return-Path: X-Original-To: apmail-hc-commits-archive@www.apache.org Delivered-To: apmail-hc-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 84AD717C4A for ; Thu, 5 Feb 2015 14:19:43 +0000 (UTC) Received: (qmail 16033 invoked by uid 500); 5 Feb 2015 14:19:43 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 15936 invoked by uid 500); 5 Feb 2015 14:19:43 -0000 Mailing-List: contact commits-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 commits@hc.apache.org Received: (qmail 15712 invoked by uid 99); 5 Feb 2015 14:19:43 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Feb 2015 14:19:43 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 1EB4BAC031F for ; Thu, 5 Feb 2015 14:19:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1657573 [8/10] - in /httpcomponents/site: ./ httpcomponents-client-4.3.x/ httpcomponents-client-4.4.x/ httpcomponents-client-4.4.x/fluent-hc/apidocs/org/apache/http/client/fluent/ httpcomponents-client-4.4.x/fluent-hc/apidocs/org/apache/ht... Date: Thu, 05 Feb 2015 14:19:41 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150205141943.1EB4BAC031F@hades.apache.org> Added: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265CookieSpecProvider.html URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265CookieSpecProvider.html?rev=1657573&view=auto ============================================================================== --- httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265CookieSpecProvider.html (added) +++ httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265CookieSpecProvider.html Thu Feb 5 14:19:40 2015 @@ -0,0 +1,134 @@ + + + + +RFC6265CookieSpecProvider xref + + + +
+
+1   /*
+2    * ====================================================================
+3    * Licensed to the Apache Software Foundation (ASF) under one
+4    * or more contributor license agreements.  See the NOTICE file
+5    * distributed with this work for additional information
+6    * regarding copyright ownership.  The ASF licenses this file
+7    * to you under the Apache License, Version 2.0 (the
+8    * "License"); you may not use this file except in compliance
+9    * with the License.  You may obtain a copy of the License at
+10   *
+11   *   http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing,
+14   * software distributed under the License is distributed on an
+15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+16   * KIND, either express or implied.  See the License for the
+17   * specific language governing permissions and limitations
+18   * under the License.
+19   * ====================================================================
+20   *
+21   * This software consists of voluntary contributions made by many
+22   * individuals on behalf of the Apache Software Foundation.  For more
+23   * information on the Apache Software Foundation, please see
+24   * <http://www.apache.org/>.
+25   *
+26   */
+27  
+28  package org.apache.http.impl.cookie;
+29  
+30  import org.apache.http.annotation.Immutable;
+31  import org.apache.http.conn.util.PublicSuffixMatcher;
+32  import org.apache.http.cookie.Cookie;
+33  import org.apache.http.cookie.CookieOrigin;
+34  import org.apache.http.cookie.CookieSpec;
+35  import org.apache.http.cookie.CookieSpecProvider;
+36  import org.apache.http.cookie.MalformedCookieException;
+37  import org.apache.http.protocol.HttpContext;
+38  
+39  /**
+40   * {@link org.apache.http.cookie.CookieSpecProvider} implementation that provides an instance of
+41   * RFC 6265 conformant cookie policy. The instance returned by this factory can be shared by
+42   * multiple threads.
+43   *
+44   * @since 4.4
+45   */
+46  @Immutable
+47  public class RFC6265CookieSpecProvider implements CookieSpecProvider {
+48  
+49      public enum CompatibilityLevel {
+50          STRICT,
+51          RELAXED,
+52          IE_MEDIUM_SECURITY
+53      }
+54  
+55      private final CompatibilityLevel compatibilityLevel;
+56      private final PublicSuffixMatcher publicSuffixMatcher;
+57  
+58      private volatile CookieSpec cookieSpec;
+59  
+60      public RFC6265CookieSpecProvider(
+61              final CompatibilityLevel compatibilityLevel,
+62              final PublicSuffixMatcher publicSuffixMatcher) {
+63          super();
+64          this.compatibilityLevel = compatibilityLevel != null ? compatibilityLevel : CompatibilityLevel.RELAXED;
+65          this.publicSuffixMatcher = publicSuffixMatcher;
+66      }
+67  
+68      public RFC6265CookieSpecProvider(final PublicSuffixMatcher publicSuffixMatcher) {
+69          this(CompatibilityLevel.RELAXED, publicSuffixMatcher);
+70      }
+71  
+72      public RFC6265CookieSpecProvider() {
+73          this(CompatibilityLevel.RELAXED, null);
+74      }
+75  
+76      @Override
+77      public CookieSpec create(final HttpContext context) {
+78          if (cookieSpec == null) {
+79              synchronized (this) {
+80                  if (cookieSpec == null) {
+81                      switch (this.compatibilityLevel) {
+82                          case STRICT:
+83                              this.cookieSpec = new RFC6265StrictSpec(
+84                                      new BasicPathHandler(),
+85                                      PublicSuffixDomainFilter.decorate(
+86                                              new BasicDomainHandler(), this.publicSuffixMatcher),
+87                                      new BasicMaxAgeHandler(),
+88                                      new BasicSecureHandler(),
+89                                      new BasicExpiresHandler(RFC6265StrictSpec.DATE_PATTERNS));
+90                          case IE_MEDIUM_SECURITY:
+91                              this.cookieSpec = new RFC6265LaxSpec(
+92                                      new BasicPathHandler() {
+93                                          @Override
+94                                          public void validate(
+95                                                  final Cookie cookie,
+96                                                  final CookieOrigin origin) throws MalformedCookieException {
+97                                              // No validation
+98                                          }
+99                                      },
+100                                     PublicSuffixDomainFilter.decorate(
+101                                             new BasicDomainHandler(), this.publicSuffixMatcher),
+102                                     new BasicMaxAgeHandler(),
+103                                     new BasicSecureHandler(),
+104                                     new BasicExpiresHandler(RFC6265StrictSpec.DATE_PATTERNS));
+105                         default:
+106                             this.cookieSpec = new RFC6265LaxSpec(
+107                                     new BasicPathHandler(),
+108                                     PublicSuffixDomainFilter.decorate(
+109                                             new BasicDomainHandler(), this.publicSuffixMatcher),
+110                                     new LaxMaxAgeHandler(),
+111                                     new BasicSecureHandler(),
+112                                     new LaxExpiresHandler());
+113                     }
+114                 }
+115             }
+116         }
+117         return this.cookieSpec;
+118     }
+119 
+120 }
+
+
+ + Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265CookieSpecProvider.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265CookieSpecProvider.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265CookieSpecProvider.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265LaxSpec.html URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265LaxSpec.html?rev=1657573&view=auto ============================================================================== --- httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265LaxSpec.html (added) +++ httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265LaxSpec.html Thu Feb 5 14:19:40 2015 @@ -0,0 +1,75 @@ + + + + +RFC6265LaxSpec xref + + + +
+
+1   /*
+2    * ====================================================================
+3    * Licensed to the Apache Software Foundation (ASF) under one
+4    * or more contributor license agreements.  See the NOTICE file
+5    * distributed with this work for additional information
+6    * regarding copyright ownership.  The ASF licenses this file
+7    * to you under the Apache License, Version 2.0 (the
+8    * "License"); you may not use this file except in compliance
+9    * with the License.  You may obtain a copy of the License at
+10   *
+11   *   http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing,
+14   * software distributed under the License is distributed on an
+15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+16   * KIND, either express or implied.  See the License for the
+17   * specific language governing permissions and limitations
+18   * under the License.
+19   * ====================================================================
+20   *
+21   * This software consists of voluntary contributions made by many
+22   * individuals on behalf of the Apache Software Foundation.  For more
+23   * information on the Apache Software Foundation, please see
+24   * <http://www.apache.org/>.
+25   *
+26   */
+27  
+28  package org.apache.http.impl.cookie;
+29  
+30  import org.apache.http.annotation.ThreadSafe;
+31  import org.apache.http.cookie.CommonCookieAttributeHandler;
+32  
+33  /**
+34   * Standard {@link org.apache.http.cookie.CookieSpec} implementation that enforces a more relaxed
+35   * interpretation of the HTTP state management specification (RFC 6265, section 5)
+36   * for interoperability with existing servers that do not conform to the well behaved profile
+37   * (RFC 6265, section 4).
+38   *
+39   * @since 4.4
+40   */
+41  @ThreadSafe
+42  public class RFC6265LaxSpec extends RFC6265CookieSpecBase {
+43  
+44      public RFC6265LaxSpec() {
+45          super(new BasicPathHandler(),
+46                  new BasicDomainHandler(),
+47                  new LaxMaxAgeHandler(),
+48                  new BasicSecureHandler(),
+49                  new LaxExpiresHandler());
+50      }
+51  
+52      RFC6265LaxSpec(final CommonCookieAttributeHandler... handlers) {
+53          super(handlers);
+54      }
+55  
+56      @Override
+57      public String toString() {
+58          return "rfc6265-lax";
+59      }
+60  
+61  }
+
+
+ + Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265LaxSpec.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265LaxSpec.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265LaxSpec.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265StrictSpec.html URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265StrictSpec.html?rev=1657573&view=auto ============================================================================== --- httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265StrictSpec.html (added) +++ httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265StrictSpec.html Thu Feb 5 14:19:40 2015 @@ -0,0 +1,81 @@ + + + + +RFC6265StrictSpec xref + + + +
+
+1   /*
+2    * ====================================================================
+3    * Licensed to the Apache Software Foundation (ASF) under one
+4    * or more contributor license agreements.  See the NOTICE file
+5    * distributed with this work for additional information
+6    * regarding copyright ownership.  The ASF licenses this file
+7    * to you under the Apache License, Version 2.0 (the
+8    * "License"); you may not use this file except in compliance
+9    * with the License.  You may obtain a copy of the License at
+10   *
+11   *   http://www.apache.org/licenses/LICENSE-2.0
+12   *
+13   * Unless required by applicable law or agreed to in writing,
+14   * software distributed under the License is distributed on an
+15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+16   * KIND, either express or implied.  See the License for the
+17   * specific language governing permissions and limitations
+18   * under the License.
+19   * ====================================================================
+20   *
+21   * This software consists of voluntary contributions made by many
+22   * individuals on behalf of the Apache Software Foundation.  For more
+23   * information on the Apache Software Foundation, please see
+24   * <http://www.apache.org/>.
+25   *
+26   */
+27  
+28  package org.apache.http.impl.cookie;
+29  
+30  import org.apache.http.annotation.ThreadSafe;
+31  import org.apache.http.client.utils.DateUtils;
+32  import org.apache.http.cookie.CommonCookieAttributeHandler;
+33  
+34  /**
+35   * Standard {@link org.apache.http.cookie.CookieSpec} implementation that enforces syntax
+36   * and semantics of the well-behaved profile of the HTTP state management specification
+37   * (RFC 6265, section 4).
+38   *
+39   * @since 4.4
+40   */
+41  @ThreadSafe
+42  public class RFC6265StrictSpec extends RFC6265CookieSpecBase {
+43  
+44      final static String[] DATE_PATTERNS = {
+45          DateUtils.PATTERN_RFC1123,
+46          DateUtils.PATTERN_RFC1036,
+47          DateUtils.PATTERN_ASCTIME
+48      };
+49  
+50      public RFC6265StrictSpec() {
+51          super(new BasicPathHandler(),
+52                  new BasicDomainHandler(),
+53                  new BasicMaxAgeHandler(),
+54                  new BasicSecureHandler(),
+55                  new BasicExpiresHandler(DATE_PATTERNS));
+56      }
+57  
+58      RFC6265StrictSpec(final CommonCookieAttributeHandler... handlers) {
+59          super(handlers);
+60      }
+61  
+62      @Override
+63      public String toString() {
+64          return "rfc6265-strict";
+65      }
+66  
+67  }
+
+
+ + Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265StrictSpec.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265StrictSpec.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpclient/xref/org/apache/http/impl/cookie/RFC6265StrictSpec.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/FormBodyPartBuilder.html URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/FormBodyPartBuilder.html?rev=1657573&view=auto ============================================================================== --- httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/FormBodyPartBuilder.html (added) +++ httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/FormBodyPartBuilder.html Thu Feb 5 14:19:40 2015 @@ -0,0 +1,324 @@ + + + + + + +FormBodyPartBuilder (Apache HttpClient Mime 4.4 API) + + + + + + + + + + + +
+
org.apache.http.entity.mime
+

Class FormBodyPartBuilder

+
+
+ +
+
    +
  • +
    +
    +
    public class FormBodyPartBuilder
    +extends Object
    +
    Builder for individual FormBodyParts.
    +
    Since:
    +
    4.4
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + +

Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.

+ + Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/FormBodyPartBuilder.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/FormBodyPartBuilder.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/FormBodyPartBuilder.html ------------------------------------------------------------------------------ svn:mime-type = text/html Added: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/class-use/FormBodyPartBuilder.html URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/class-use/FormBodyPartBuilder.html?rev=1657573&view=auto ============================================================================== --- httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/class-use/FormBodyPartBuilder.html (added) +++ httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/class-use/FormBodyPartBuilder.html Thu Feb 5 14:19:40 2015 @@ -0,0 +1,186 @@ + + + + + + +Uses of Class org.apache.http.entity.mime.FormBodyPartBuilder (Apache HttpClient Mime 4.4 API) + + + + + + + + + + +
+

Uses of Class
org.apache.http.entity.mime.FormBodyPartBuilder

+
+
+ +
+ + + + +

Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.

+ + Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/class-use/FormBodyPartBuilder.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/class-use/FormBodyPartBuilder.html ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: httpcomponents/site/httpcomponents-client-4.4.x/httpmime/apidocs/org/apache/http/entity/mime/class-use/FormBodyPartBuilder.html ------------------------------------------------------------------------------ svn:mime-type = text/html