Default response methods.
[shibboleth/cpp-opensaml.git] / saml / binding / HTTPResponse.h
index 1af35a4..b4af8f5 100644 (file)
@@ -76,6 +76,14 @@ namespace opensaml {
             SAML_HTTP_STATUS_NOTFOUND = 404,
             SAML_HTTP_STATUS_ERROR = 500
         };
+        
+        long sendError(std::istream& inputStream) {
+            return static_cast<GenericResponse*>(this)->sendResponse(inputStream, SAML_HTTP_STATUS_ERROR);
+        }
+
+        long sendResponse(std::istream& inputStream) {
+            return static_cast<GenericResponse*>(this)->sendResponse(inputStream, SAML_HTTP_STATUS_OK);
+        }
     };
 };