Expose a "user agent present" property.
authorScott Cantor <cantor.2@osu.edu>
Tue, 3 Jul 2007 19:38:08 +0000 (19:38 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 3 Jul 2007 19:38:08 +0000 (19:38 +0000)
saml/binding/MessageDecoder.h
saml/binding/MessageEncoder.h
saml/saml1/binding/impl/SAML1SOAPDecoder.cpp
saml/saml1/binding/impl/SAML1SOAPEncoder.cpp
saml/saml2/binding/impl/SAML2SOAPDecoder.cpp
saml/saml2/binding/impl/SAML2SOAPEncoder.cpp

index 31649cc..d3fcc9e 100644 (file)
@@ -54,6 +54,15 @@ namespace opensaml {
         virtual ~MessageDecoder() {}
 
         /**
+         * Indicates whether a web browser or similar user agent delivered the message.
+         *
+         * @return true iff the message was delivered by a user agent
+         */
+        virtual bool isUserAgentPresent() const {
+            return true;
+        }
+
+        /**
          * Interface to caller-supplied artifact resolution mechanism.
          * 
          * Resolving artifacts requires internally performing a SOAP-based
index fa8218d..dcbd86d 100644 (file)
@@ -59,6 +59,15 @@ namespace opensaml {
         }
 
         /**
+         * Indicates whether a web browser or similar user agent will receive the message.
+         *
+         * @return true iff the message will be handled by a user agent
+         */
+        virtual bool isUserAgentPresent() const {
+            return true;
+        }
+
+        /**
          * Interface to caller-supplied artifact generation mechanism.
          * 
          * Generating an artifact for storage and retrieval requires knowledge of
index d759507..eff4034 100644 (file)
@@ -44,7 +44,11 @@ namespace opensaml {
         public:
             SAML1SOAPDecoder(const DOMElement* e) {}
             virtual ~SAML1SOAPDecoder() {}
-            
+
+            bool isUserAgentPresent() const {
+                return false;
+            }
+
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index e031adf..7dc59a1 100644 (file)
@@ -48,7 +48,11 @@ namespace opensaml {
         public:
             SAML1SOAPEncoder(const DOMElement* e) {}
             virtual ~SAML1SOAPEncoder() {}
-            
+
+            bool isUserAgentPresent() const {
+                return false;
+            }
+
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,
index c48c2f9..3757039 100644 (file)
@@ -44,7 +44,11 @@ namespace opensaml {
         public:
             SAML2SOAPDecoder(const DOMElement* e);
             virtual ~SAML2SOAPDecoder() {}
-            
+
+            bool isUserAgentPresent() const {
+                return false;
+            }
+
             xmltooling::XMLObject* decode(
                 std::string& relayState,
                 const GenericRequest& genericRequest,
index 65e135b..bd82eeb 100644 (file)
@@ -48,7 +48,11 @@ namespace opensaml {
         public:
             SAML2SOAPEncoder(const DOMElement* e);
             virtual ~SAML2SOAPEncoder() {}
-            
+
+            bool isUserAgentPresent() const {
+                return false;
+            }
+
             long encode(
                 GenericResponse& genericResponse,
                 XMLObject* xmlObject,