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.client; 00020 00021 import java.io.Serializable; 00022 import java.net.URL; 00023 00024 import org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl; 00025 import org.apache.xmlrpc.common.XmlRpcRequestProcessor; 00026 00027 00030 public class XmlRpcClientConfigImpl extends XmlRpcHttpRequestConfigImpl 00031 implements XmlRpcHttpClientConfig, XmlRpcLocalClientConfig, Cloneable, Serializable { 00032 private static final long serialVersionUID = 4121131450507800889L; 00033 private URL serverURL; 00034 private XmlRpcRequestProcessor xmlRpcServer; 00035 private String userAgent; 00036 00039 public XmlRpcClientConfigImpl() { 00040 } 00041 00045 public XmlRpcClientConfigImpl cloneMe() { 00046 try { 00047 return (XmlRpcClientConfigImpl) clone(); 00048 } catch (CloneNotSupportedException e) { 00049 throw new IllegalStateException("Unable to create my clone"); 00050 } 00051 } 00052 00056 public void setServerURL(URL pURL) { 00057 serverURL = pURL; 00058 } 00059 public URL getServerURL() { return serverURL; } 00065 public void setXmlRpcServer(XmlRpcRequestProcessor pServer) { 00066 xmlRpcServer = pServer; 00067 } 00068 public XmlRpcRequestProcessor getXmlRpcServer() { return xmlRpcServer; } 00069 00074 public String getUserAgent() { 00075 return userAgent; 00076 } 00077 00081 public void setUserAgent(String pUserAgent) { 00082 userAgent = pUserAgent; 00083 } 00084 }