21 #ifndef EXTENSIONURL_H
22 #define EXTENSIONURL_H
24 #include <xalanc/Include/PlatformDefinitions.hpp>
25 #include <xalanc/XPath/Function.hpp>
26 #include <xercesc/util/PlatformUtils.hpp>
27 #include <xalanc/XalanTransformer/XalanTransformer.hpp>
28 #include <xalanc/XPath/XObjectFactory.hpp>
30 #include "../DllMain.h"
32 #include <curl/curl.h>
34 XALAN_USING_XALAN(Function)
35 XALAN_USING_XALAN(XPathExecutionContext)
36 XALAN_USING_XALAN(XalanDOMString)
37 XALAN_USING_XALAN(XalanNode)
39 XALAN_USING_XALAN(XObjectPtr)
42 XALAN_USING_XALAN(MemoryManagerType)
50 virtual XObjectPtr execute( XPathExecutionContext& executionContext, XalanNode* context,
const XObjectArgVectorType& args,
const LocatorType* locator )
const;
53 #if defined( XALAN_NO_COVARIANT_RETURN_TYPE )
54 virtual Function* clone( MemoryManagerType& theManager )
const;
56 virtual FunctionUrl* clone( MemoryManagerType& theManager )
const;
59 const XalanDOMString& getError( XalanDOMString& theResult )
const;
61 #if defined( XALAN_NO_COVARIANT_RETURN_TYPE )
62 virtual Function* clone()
const;
67 const XalanDOMString getError()
const;
71 static int writer(
char *data,
size_t size,
size_t nmemb,
unsigned char** writerData );
82 void initCurl( CURL *&conn,
const string& url )
const;
84 static char m_ErrorBuffer[ CURL_ERROR_SIZE ];
90 #endif // EXTENSIONURL_H