Moved handler sources.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 2 Mar 2007 03:39:39 +0000 (03:39 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 2 Mar 2007 03:39:39 +0000 (03:39 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2181 cb58f699-b61c-0410-a6fe-9272a202ed29

.cdtproject
shibsp/Makefile.am
shibsp/SPConfig.cpp
shibsp/ServiceProvider.cpp
shibsp/handler/AbstractHandler.h [moved from shibsp/AbstractHandler.h with 95% similarity]
shibsp/handler/Handler.h [moved from shibsp/Handler.h with 98% similarity]
shibsp/handler/RemotedHandler.h [moved from shibsp/remoting/RemotedHandler.h with 93% similarity]
shibsp/handler/impl/AbstractHandler.cpp [moved from shibsp/AbstractHandler.cpp with 88% similarity]
shibsp/handler/impl/RemotedHandler.cpp [moved from shibsp/remoting/impl/RemotedHandler.cpp with 99% similarity]
shibsp/impl/XMLServiceProvider.cpp
shibsp/shibsp.vcproj

index fa13b21..10a5b0a 100644 (file)
@@ -8,12 +8,14 @@
         
     <item id="org.eclipse.cdt.core.pathentry">
 <pathentry kind="out" path=""/>
-<pathentry excluding="util/|impl/|security/|metadata/|remoting/|remoting/impl/|attribute/|binding/|binding/impl/|attribute/resolver/|attribute/resolver/impl/" kind="src" path="shibsp"/>
+<pathentry excluding="util/|impl/|security/|metadata/|remoting/|remoting/impl/|attribute/|binding/|binding/impl/|attribute/resolver/|attribute/resolver/impl/|handler/|handler/impl/" kind="src" path="shibsp"/>
 <pathentry excluding="resolver/|resolver/impl/" kind="src" path="shibsp/attribute"/>
 <pathentry excluding="impl/" kind="src" path="shibsp/attribute/resolver"/>
 <pathentry kind="src" path="shibsp/attribute/resolver/impl"/>
 <pathentry excluding="impl/" kind="src" path="shibsp/binding"/>
 <pathentry kind="src" path="shibsp/binding/impl"/>
+<pathentry excluding="impl/" kind="src" path="shibsp/handler"/>
+<pathentry kind="src" path="shibsp/handler/impl"/>
 <pathentry kind="src" path="shibsp/impl"/>
 <pathentry kind="src" path="shibsp/metadata"/>
 <pathentry excluding="impl/" kind="src" path="shibsp/remoting"/>
index 1e0c521..2d94a68 100644 (file)
@@ -13,6 +13,8 @@ attrresincludedir = $(includedir)/shibsp/attribute/resolver
 
 bindincludedir = $(includedir)/shibsp/binding
 
+handincludedir = $(includedir)/shibsp/handler
+
 mdincludedir = $(includedir)/shibsp/metadata
 
 remincludedir = $(includedir)/shibsp/remoting
@@ -22,13 +24,11 @@ secincludedir = $(includedir)/shibsp/security
 utilincludedir = $(includedir)/shibsp/util
 
 libshibspinclude_HEADERS = \
-       AbstractHandler.h \
        AbstractSPRequest.h \
        AccessControl.h \
        Application.h \
        base.h \
        exceptions.h \
-       Handler.h \
        paths.h \
        RequestMapper.h \
        ServiceProvider.h \
@@ -51,14 +51,18 @@ attrresinclude_HEADERS = \
 
 bindinclude_HEADERS = \
        binding/SOAPClient.h
-       
+
+handinclude_HEADERS = \
+       handler/AbstractHandler.h \
+       handler/Handler.h \
+       handler/RemotedHandler.h
+
 mdinclude_HEADERS = \
        metadata/MetadataExt.h
 
 reminclude_HEADERS = \
-       ddf.h \
-       ListenerService.h \
-       RemotedHandler.h
+       remoting/ddf.h \
+       remoting/ListenerService.h
        
 secinclude_HEADERS = \
        security/PKIXTrustEngine.h
@@ -74,7 +78,6 @@ noinst_HEADERS = \
        remoting/impl/SocketListener.h
 
 libshibsp_la_SOURCES = \
-       AbstractHandler.cpp \
        AbstractSPRequest.cpp \
        Application.cpp \
        ServiceProvider.cpp \
@@ -87,6 +90,8 @@ libshibsp_la_SOURCES = \
        attribute/resolver/impl/AttributeResolver.cpp \
        attribute/resolver/impl/SimpleAttributeResolver.cpp \
        binding/impl/SOAPClient.cpp \
+       handler/impl/RemotedHandler.cpp \
+       handler/impl/AbstractHandler.cpp \
        impl/RemotedSessionCache.cpp \
        impl/StorageServiceSessionCache.cpp \
        impl/XMLAccessControl.cpp \
@@ -96,7 +101,6 @@ libshibsp_la_SOURCES = \
        metadata/MetadataExtSchemaValidators.cpp \
        remoting/impl/ddf.cpp \
        remoting/impl/ListenerService.cpp \
-       remoting/impl/RemotedHandler.cpp \
        remoting/impl/SocketListener.cpp \
        remoting/impl/TCPListener.cpp \
        remoting/impl/UnixListener.cpp \
index cefcc17..baa1e40 100644 (file)
 #include "internal.h"
 #include "AccessControl.h"
 #include "exceptions.h"
-#include "Handler.h"
 #include "RequestMapper.h"
 #include "ServiceProvider.h"
 #include "SessionCache.h"
 #include "SPConfig.h"
 #include "attribute/AttributeDecoder.h"
 #include "attribute/resolver/AttributeResolver.h"
+#include "handler/Handler.h"
 #include "metadata/MetadataExt.h"
 #include "remoting/ListenerService.h"
 #include "security/PKIXTrustEngine.h"
index ff97ad2..7a1eed7 100644 (file)
 #include "exceptions.h"
 #include "AccessControl.h"
 #include "Application.h"
-#include "Handler.h"
 #include "ServiceProvider.h"
 #include "SessionCache.h"
 #include "SPRequest.h"
 #include "attribute/Attribute.h"
+#include "handler/Handler.h"
 #include "util/TemplateParameters.h"
 
 #include <fstream>
similarity index 95%
rename from shibsp/AbstractHandler.h
rename to shibsp/handler/AbstractHandler.h
index 0646d3c..ba79ea5 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 /**
- * @file shibsp/AbstractHandler.h
+ * @file shibsp/handler/AbstractHandler.h
  * 
  * Base class for handlers based on a DOMPropertySet. 
  */
@@ -23,7 +23,7 @@
 #ifndef __shibsp_abshandler_h__
 #define __shibsp_abshandler_h__
 
-#include <shibsp/Handler.h>
+#include <shibsp/handler/Handler.h>
 #include <shibsp/util/DOMPropertySet.h>
 
 namespace shibsp {
similarity index 98%
rename from shibsp/Handler.h
rename to shibsp/handler/Handler.h
index 62d3ff8..c26c3c8 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 /**
- * @file shibsp/Handler.h
+ * @file shibsp/handler/Handler.h
  * 
  * Pluggable runtime functionality that implement protocols and services 
  */
similarity index 93%
rename from shibsp/remoting/RemotedHandler.h
rename to shibsp/handler/RemotedHandler.h
index f779ebc..3006842 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 /**
- * @file shibsp/remoting/RemotedHandler.h
+ * @file shibsp/handler/RemotedHandler.h
  * 
  * Base class for handlers that need SP request/response layer to be remoted. 
  */
@@ -24,7 +24,7 @@
 #define __shibsp_remhandler_h__
 
 #include <shibsp/SPRequest.h>
-#include <shibsp/Handler.h>
+#include <shibsp/handler/Handler.h>
 #include <shibsp/remoting/ListenerService.h>
 
 namespace shibsp {
@@ -32,13 +32,13 @@ namespace shibsp {
     /**
      * Base class for handlers that need HTTP request/response layer to be remoted.
      */
-    class SHIBSP_API RemotedHandler : public Handler, public Remoted 
+    class SHIBSP_API RemotedHandler : public virtual Handler, public Remoted 
     {
     public:
         virtual ~RemotedHandler() {}
 
     protected:
-        RemotedHandler(const xercesc::DOMElement* e=NULL) {}
+        RemotedHandler() {}
 
         /**
          * Wraps a request by annotating an outgoing data flow with the data needed
similarity index 88%
rename from shibsp/AbstractHandler.cpp
rename to shibsp/handler/impl/AbstractHandler.cpp
index 267e5b3..9fc7cf3 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #include "internal.h"
-#include "AbstractHandler.h"
+#include "handler/AbstractHandler.h"
 
 using namespace shibsp;
 using namespace xercesc;
@@ -30,5 +30,5 @@ using namespace std;
 AbstractHandler::AbstractHandler(
     const DOMElement* e, DOMNodeFilter* filter, const map<string,string>* remapper
     ) {
-    load(e,log4cpp::Category::getInstance(SHIBSP_LOGCAT".AbstractHandler"),filter,remapper);
+    load(e,log4cpp::Category::getInstance(SHIBSP_LOGCAT".Handler"),filter,remapper);
 }
similarity index 99%
rename from shibsp/remoting/impl/RemotedHandler.cpp
rename to shibsp/handler/impl/RemotedHandler.cpp
index 6a8695b..0728b19 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #include "internal.h"
-#include "remoting/RemotedHandler.h"
+#include "handler/RemotedHandler.h"
 
 #include <algorithm>
 #include <log4cpp/Category.hh>
index 5715c60..dd00d12 100644 (file)
@@ -24,7 +24,6 @@
 #include "exceptions.h"\r
 #include "AccessControl.h"\r
 #include "Application.h"\r
-#include "Handler.h"\r
 #include "RequestMapper.h"\r
 #include "ServiceProvider.h"\r
 #include "SessionCache.h"\r
@@ -32,6 +31,7 @@
 #include "SPRequest.h"\r
 #include "TransactionLog.h"\r
 #include "attribute/resolver/AttributeResolver.h"\r
+#include "handler/Handler.h"\r
 #include "remoting/ListenerService.h"\r
 #include "security/PKIXTrustEngine.h"\r
 #include "util/DOMPropertySet.h"\r
index 0ef2a59..3b0a311 100644 (file)
                        UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
                        >\r
                        <File\r
-                               RelativePath=".\AbstractHandler.cpp"\r
-                               >\r
-                       </File>\r
-                       <File\r
                                RelativePath=".\AbstractSPRequest.cpp"\r
                                >\r
                        </File>\r
                                                >\r
                                        </File>\r
                                        <File\r
-                                               RelativePath=".\remoting\impl\RemotedHandler.cpp"\r
-                                               >\r
-                                       </File>\r
-                                       <File\r
                                                RelativePath=".\remoting\impl\SocketListener.cpp"\r
                                                >\r
                                        </File>\r
                                        </File>\r
                                </Filter>\r
                        </Filter>\r
+                       <Filter\r
+                               Name="handler"\r
+                               >\r
+                               <Filter\r
+                                       Name="impl"\r
+                                       >\r
+                                       <File\r
+                                               RelativePath=".\handler\impl\AbstractHandler.cpp"\r
+                                               >\r
+                                       </File>\r
+                                       <File\r
+                                               RelativePath=".\handler\impl\RemotedHandler.cpp"\r
+                                               >\r
+                                       </File>\r
+                               </Filter>\r
+                       </Filter>\r
                </Filter>\r
                <Filter\r
                        Name="Header Files"\r
                        UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
                        >\r
                        <File\r
-                               RelativePath=".\AbstractHandler.h"\r
-                               >\r
-                       </File>\r
-                       <File\r
                                RelativePath=".\AbstractSPRequest.h"\r
                                >\r
                        </File>\r
                                >\r
                        </File>\r
                        <File\r
-                               RelativePath=".\Handler.h"\r
-                               >\r
-                       </File>\r
-                       <File\r
                                RelativePath=".\internal.h"\r
                                >\r
                        </File>\r
                                        RelativePath=".\remoting\ListenerService.h"\r
                                        >\r
                                </File>\r
-                               <File\r
-                                       RelativePath=".\remoting\RemotedHandler.h"\r
-                                       >\r
-                               </File>\r
                        </Filter>\r
                        <Filter\r
                                Name="attribute"\r
                                        >\r
                                </File>\r
                        </Filter>\r
+                       <Filter\r
+                               Name="handler"\r
+                               >\r
+                               <File\r
+                                       RelativePath=".\handler\AbstractHandler.h"\r
+                                       >\r
+                               </File>\r
+                               <File\r
+                                       RelativePath=".\handler\Handler.h"\r
+                                       >\r
+                               </File>\r
+                               <File\r
+                                       RelativePath=".\handler\RemotedHandler.h"\r
+                                       >\r
+                               </File>\r
+                       </Filter>\r
                </Filter>\r
                <Filter\r
                        Name="Resource Files"\r