2 * Licensed to the Apache Software Foundation (ASF) under one or more
\r
3 * contributor license agreements. See the NOTICE file distributed with
\r
4 * this work for additional information regarding copyright ownership.
\r
5 * The ASF licenses this file to You under the Apache License, Version 2.0
\r
6 * (the "License"); you may not use this file except in compliance with
\r
7 * the License. You may obtain a copy of the License at
\r
9 * http://www.apache.org/licenses/LICENSE-2.0
\r
11 * Unless required by applicable law or agreed to in writing, software
\r
12 * distributed under the License is distributed on an "AS IS" BASIS,
\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 * See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
19 * $Id: CurlNetAccessor.hpp 527149 2007-04-10 14:56:39Z amassari $
\r
22 #if !defined(XERCESC_INCLUDE_GUARD_CURLNETACCESSOR_HPP)
\r
23 #define XERCESC_INCLUDE_GUARD_CURLNETACCESSOR_HPP
\r
26 #include <xercesc/util/XercesDefs.hpp>
\r
27 #include <xercesc/util/XMLURL.hpp>
\r
28 #include <xercesc/util/BinInputStream.hpp>
\r
29 #include <xercesc/util/XMLNetAccessor.hpp>
\r
31 namespace xmltooling {
\r
34 // This class is the wrapper for the socket based code which
\r
35 // provides the ability to fetch a resource specified using
\r
36 // a HTTP or FTP URL.
\r
39 class XMLTOOL_DLLLOCAL CurlNetAccessor : public XMLNetAccessor
\r
42 CurlNetAccessor() {}
\r
43 ~CurlNetAccessor() {}
\r
45 virtual BinInputStream* makeNew(const XMLURL& urlSource, const XMLNetHTTPInfo* httpInfo=0);
\r
46 virtual const XMLCh* getId() const;
\r
49 static const XMLCh fgMyName[];
\r
51 CurlNetAccessor(const CurlNetAccessor&);
\r
52 CurlNetAccessor& operator=(const CurlNetAccessor&);
\r
54 }; // CurlNetAccessor
\r
57 inline const XMLCh* CurlNetAccessor::getId() const
\r
64 #endif // CURLNETACCESSOR_HPP
\r