00001 /* 00002 * Copyright 2002-2004 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 * imitations 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.4 2004/02/08 10:50:22 blautenb Exp $ 00029 * 00030 * $Log: XSECURIResolverGenericUnix.hpp,v $ 00031 * Revision 1.4 2004/02/08 10:50:22 blautenb 00032 * Update to Apache 2.0 license 00033 * 00034 * Revision 1.3 2003/09/11 11:29:12 blautenb 00035 * Fix Xerces namespace usage in *NIX build 00036 * 00037 * Revision 1.2 2003/07/05 10:30:38 blautenb 00038 * Copyright update 00039 * 00040 * Revision 1.1 2003/02/12 11:21:04 blautenb 00041 * UNIX generic URI resolver 00042 * 00043 * 00044 */ 00045 00046 #ifndef XSECURIRESOLVERGENERICUNIX_INCLUDE 00047 #define XSECURIRESOLVERGENERICUNIX_INCLUDE 00048 00049 #include <xsec/framework/XSECDefs.hpp> 00050 #include <xsec/framework/XSECURIResolver.hpp> 00051 00052 #include <xercesc/util/XMLString.hpp> 00053 00057 /*\@{*/ 00058 00072 class DSIG_EXPORT XSECURIResolverGenericUnix : public XSECURIResolver { 00073 00074 public: 00075 00078 00079 XSECURIResolverGenericUnix(); 00080 virtual ~XSECURIResolverGenericUnix(); 00081 00083 00086 00102 virtual XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream * 00103 resolveURI(const XMLCh * uri); 00104 00114 virtual XSECURIResolver * clone(void); 00115 00117 00120 00126 void setBaseURI(const XMLCh * uri); 00127 00129 00130 private: 00131 00132 XMLCh * mp_baseURI; 00133 00134 00135 }; 00136 00137 00138 #endif /* XSECURIRESOLVERGENERICUNIX_INCLUDE */