Coverage Report - org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
XmlRpcHttpRequestConfigImpl
69% 
N/A 
1
 
 1  
 /*
 2  
  * Copyright 1999,2005 The Apache Software Foundation.
 3  
  * 
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.apache.xmlrpc.common;
 17  
 
 18  
 import org.apache.xmlrpc.XmlRpcConfigImpl;
 19  
 
 20  
 
 21  
 /** Default implementation of a request configuration.
 22  
  */
 23  883
 public class XmlRpcHttpRequestConfigImpl extends XmlRpcConfigImpl implements
 24  
                 XmlRpcHttpRequestConfig {
 25  
         private boolean gzipCompressing;
 26  
         private boolean gzipRequesting;
 27  
         private String basicUserName;
 28  
         private String basicPassword;
 29  
         /** Sets, whether gzip compression is being used for
 30  
          * transmitting the request.
 31  
          * @param pCompressing True for enabling gzip compression,
 32  
          * false otherwise.
 33  
          * @see #setGzipRequesting(boolean)
 34  
          */
 35  
         public void setGzipCompressing(boolean pCompressing) {
 36  70
                 gzipCompressing = pCompressing;
 37  70
         }
 38  
 
 39  
         public boolean isGzipCompressing() {
 40  989
                 return gzipCompressing;
 41  
         }
 42  
 
 43  
         /** Sets, whether gzip compression is requested for the
 44  
          * response.
 45  
          * @param pRequesting True for requesting gzip compression,
 46  
          * false otherwise.
 47  
          * @see #setGzipCompressing(boolean)
 48  
          */
 49  
         public void setGzipRequesting(boolean pRequesting) {
 50  70
                 gzipRequesting = pRequesting;
 51  70
         }
 52  
 
 53  
         public boolean isGzipRequesting() {
 54  640
                 return gzipRequesting;
 55  
         }
 56  
 
 57  
         /** Sets the user name for basic authentication.
 58  
          * @param pUser The user name.
 59  
          */
 60  
         public void setBasicUserName(String pUser) {
 61  0
                 basicUserName = pUser;
 62  0
         }
 63  
 
 64  336
         public String getBasicUserName() { return basicUserName; }
 65  
 
 66  
         /** Sets the password for basic authentication.
 67  
          * @param pPassword The password.
 68  
          */
 69  
         public void setBasicPassword(String pPassword) {
 70  0
                 basicPassword = pPassword;
 71  0
         }
 72  
 
 73  288
         public String getBasicPassword() { return basicPassword; }
 74  
 }