Add a getType method to handlers to assist with documentation.
[shibboleth/cpp-sp.git] / shibsp / handler / impl / ChainingLogoutInitiator.cpp
index 0632262..4d1e434 100644 (file)
@@ -50,6 +50,12 @@ namespace shibsp {
         
         pair<bool,long> run(SPRequest& request, bool isHandler=true) const;
 
+#ifndef SHIBSP_LITE
+        const char* getType() const {
+            return "LogoutInitiator";
+        }
+#endif
+
     private:
         vector<Handler*> m_handlers;
     };
@@ -94,7 +100,7 @@ ChainingLogoutInitiator::ChainingLogoutInitiator(const DOMElement* e, const char
                 m_handlers.back()->setParent(this);
             }
             catch (exception& ex) {
-                m_log.error("caught exception processing embedded SessionInitiator element: %s", ex.what());
+                m_log.error("caught exception processing embedded LogoutInitiator element: %s", ex.what());
             }
         }
         e = XMLHelper::getNextSiblingElement(e, _LogoutInitiator);