X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fbinding%2FGenericResponse.h;h=6947a3772a7447abd4883868b874832cc65eb9a8;hp=f955e5c35621c4f4e2bb9170b358eef947889b67;hb=8a21bb42163a78e9c324f840004fd9e9821ad745;hpb=14057fc9aa90e32cfcb43947397d963c6563fa91 diff --git a/saml/binding/GenericResponse.h b/saml/binding/GenericResponse.h index f955e5c..6947a37 100644 --- a/saml/binding/GenericResponse.h +++ b/saml/binding/GenericResponse.h @@ -49,6 +49,24 @@ namespace opensaml { virtual void setContentType(const char* type=NULL)=0; /** + * Sends a completed response to the client along with a + * transport-specific "OK" indication. Used for "normal" responses. + * + * @param inputStream reference to source of response data + * @return a result code to return from the calling MessageEncoder + */ + virtual long sendResponse(std::istream& inputStream)=0; + + /** + * Sends an "error" response to the client along with a + * transport-specific error indication. + * + * @param inputStream reference to source of response data + * @return a result code to return from the calling MessageEncoder + */ + virtual long sendError(std::istream& inputStream)=0; + + /** * Sends a completed response to the client. * * @param inputStream reference to source of response data