00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the 00007 * "License"); you may not use this file except in compliance 00008 * with the License. You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, 00013 * software distributed under the License is distributed on an 00014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 00015 * KIND, either express or implied. See the License for the 00016 * specific language governing permissions and limitations 00017 * under the License. 00018 */ 00019 package org.apache.xmlrpc.common; 00020 00021 import org.apache.xmlrpc.XmlRpcConfigImpl; 00022 00023 00026 public class XmlRpcHttpRequestConfigImpl extends XmlRpcConfigImpl implements 00027 XmlRpcHttpRequestConfig { 00028 private boolean gzipCompressing; 00029 private boolean gzipRequesting; 00030 private String basicUserName; 00031 private String basicPassword; 00032 private int connectionTimeout = 0; 00033 private int replyTimeout = 0; 00034 private boolean enabledForExceptions; 00035 00042 public void setGzipCompressing(boolean pCompressing) { 00043 gzipCompressing = pCompressing; 00044 } 00045 00046 public boolean isGzipCompressing() { 00047 return gzipCompressing; 00048 } 00049 00056 public void setGzipRequesting(boolean pRequesting) { 00057 gzipRequesting = pRequesting; 00058 } 00059 00060 public boolean isGzipRequesting() { 00061 return gzipRequesting; 00062 } 00063 00067 public void setBasicUserName(String pUser) { 00068 basicUserName = pUser; 00069 } 00070 00071 public String getBasicUserName() { return basicUserName; } 00072 00076 public void setBasicPassword(String pPassword) { 00077 basicPassword = pPassword; 00078 } 00079 00080 public String getBasicPassword() { return basicPassword; } 00081 00085 public void setConnectionTimeout(int pTimeout) { 00086 connectionTimeout = pTimeout; 00087 } 00088 00089 public int getConnectionTimeout() { 00090 return connectionTimeout; 00091 } 00092 00096 public void setReplyTimeout(int pTimeout) { 00097 replyTimeout = pTimeout; 00098 } 00099 00100 public int getReplyTimeout() { 00101 return replyTimeout; 00102 } 00103 00109 public void setEnabledForExceptions(boolean pEnabledForExceptions) { 00110 enabledForExceptions = pEnabledForExceptions; 00111 } 00112 00113 public boolean isEnabledForExceptions() { 00114 return enabledForExceptions; 00115 } 00116 }