@@ -0,0 +1,1619 @@
+/*%0A * Copyright 2010 Ning, Inc.%0A *%0A * Ning licenses this file to you under the Apache License, version 2.0%0A * (the %22License%22); you may not use this file except in compliance with the%0A * License.  You may obtain a copy of the License at:%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the%0A * License for the specific language governing permissions and limitations%0A * under the License.%0A */%0Apackage com.ning.http.client;%0A%0A/**%0A * Interface that allows injecting signature calculator into%0A * %7B@link RequestBuilder%7D so that signature calculation and inclusion can%0A * be added as a pluggable component.%0A *%0A * @since 1.1%0A */%0Apublic interface SignatureCalculator%0A%7B%0A    /**%0A     * Method called when %7B@link RequestBuilder#build%7D method is called.%0A     * Should first calculate signature information and then modify request%0A     * (using passed %7B@link RequestBuilder%7D) to add signature (usually as%0A     * an HTTP header).%0A     *%0A     * @param requestBuilder builder that can be used to modify request, usually%0A     *   by adding header that includes calculated signature. Be sure NOT to%0A     *   call %7B@link RequestBuilder#build%7D since this will cause infinite recursion%0A     * @param request Request that is being built; needed to access content to%0A     *   be signed%0A     */%0A    public void calculateAndAddSignature(String url, Request request,%0A            RequestBuilderBase%3C?%3E requestBuilder);%0A%7D%0A

Add missing class