RetsHttpResponse Class Reference

(Internal) RetsHttpResponse is the super class that defines those operations to be returned as the result of an http transaction by libcurl. More...

#include <librets/RetsHttpResponse.h>

Inheritance diagram for RetsHttpResponse:

CurlHttpResponse

List of all members.

Public Member Functions

virtual ~RetsHttpResponse ()
virtual std::string GetHeader (std::string name) const =0
 Return a header value.
std::string GetContentType () const
virtual istreamPtr GetInputStream () const =0
 Return an input stream to the data.
virtual int GetResponseCode () const =0
 Return the HTTP response code.
virtual void SetResponseCode (int responseCode)=0
 Set the HTTP response code.
virtual std::string GetAdditionalErrorText ()=0
 Return any extended error text.
virtual void SetAdditionalErrorText (std::string errorText)=0
 Set any extended error text.


Detailed Description

(Internal) RetsHttpResponse is the super class that defines those operations to be returned as the result of an http transaction by libcurl.

Constructor & Destructor Documentation

virtual ~RetsHttpResponse (  )  [virtual]


Member Function Documentation

virtual std::string GetAdditionalErrorText (  )  [pure virtual]

Return any extended error text.

Returns:
A string containing additional error information.

Implemented in CurlHttpResponse.

std::string GetContentType (  )  const

virtual std::string GetHeader ( std::string  name  )  const [pure virtual]

Return a header value.

Returns:
Header value
Exceptions:
RetsException 

Implemented in CurlHttpResponse.

virtual istreamPtr GetInputStream (  )  const [pure virtual]

Return an input stream to the data.

Returns:
Input stream
Exceptions:
RetsException 

Implemented in CurlHttpResponse.

virtual int GetResponseCode (  )  const [pure virtual]

Return the HTTP response code.

Returns:
HTTP response code
Exceptions:
RetsException 

Implemented in CurlHttpResponse.

virtual void SetAdditionalErrorText ( std::string  errorText  )  [pure virtual]

Set any extended error text.

Parameters:
errorText A string with additional error text.

Implemented in CurlHttpResponse.

virtual void SetResponseCode ( int  responseCode  )  [pure virtual]

Set the HTTP response code.

Parameters:
responseCode An integer representing the http response code for this transaction.

Implemented in CurlHttpResponse.


Generated by  doxygen