00001 /* 00002 * Copyright 2002-2005 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * XSEC 00019 * 00020 * XSECURIResolverGenericWin32 := A URI Resolver that will work "out of 00021 * the box" with UNIX. Re-implements 00022 * much Xerces code, but allows us to 00023 * handle HTTP redirects as is required by 00024 * the DSIG Standard 00025 * 00026 * Author(s): Berin Lautenbach 00027 * 00028 * $Id: XSECURIResolverGenericUnix.hpp,v 1.5 2005/02/03 13:55:08 milan Exp $ 00029 * 00030 * $Log: XSECURIResolverGenericUnix.hpp,v $ 00031 * Revision 1.5 2005/02/03 13:55:08 milan 00032 * Apache licence fix. 00033 * 00034 * Revision 1.4 2004/02/08 10:50:22 blautenb 00035 * Update to Apache 2.0 license 00036 * 00037 * Revision 1.3 2003/09/11 11:29:12 blautenb 00038 * Fix Xerces namespace usage in *NIX build 00039 * 00040 * Revision 1.2 2003/07/05 10:30:38 blautenb 00041 * Copyright update 00042 * 00043 * Revision 1.1 2003/02/12 11:21:04 blautenb 00044 * UNIX generic URI resolver 00045 * 00046 * 00047 */ 00048 00049 #ifndef XSECURIRESOLVERGENERICUNIX_INCLUDE 00050 #define XSECURIRESOLVERGENERICUNIX_INCLUDE 00051 00052 #include <xsec/framework/XSECDefs.hpp> 00053 #include <xsec/framework/XSECURIResolver.hpp> 00054 00055 #include <xercesc/util/XMLString.hpp> 00056 00060 /*\@{*/ 00061 00075 class DSIG_EXPORT XSECURIResolverGenericUnix : public XSECURIResolver { 00076 00077 public: 00078 00081 00082 XSECURIResolverGenericUnix(); 00083 virtual ~XSECURIResolverGenericUnix(); 00084 00086 00089 00105 virtual XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream * 00106 resolveURI(const XMLCh * uri); 00107 00117 virtual XSECURIResolver * clone(void); 00118 00120 00123 00129 void setBaseURI(const XMLCh * uri); 00130 00132 00133 private: 00134 00135 XMLCh * mp_baseURI; 00136 00137 00138 }; 00139 00140 00141 #endif /* XSECURIRESOLVERGENERICUNIX_INCLUDE */