CurlHttpResponse Class Reference

(Internal) CurlHttpResponse is a class that wraps the response from libcurl. More...

#include <librets/CurlHttpResponse.h>

Inheritance diagram for CurlHttpResponse:

RetsHttpResponse

List of all members.

Public Member Functions

 CurlHttpResponse ()
virtual ~CurlHttpResponse ()
void SetUrl (std::string url)
virtual std::string GetHeader (std::string name) const
 Return a header value.
void SetHeader (std::string name, std::string value)
virtual istreamPtr GetInputStream () const
 Return an input stream to the data.
void SetStream (iostreamPtr inputStream)
void WriteData (const char *data, size_t bytes)
virtual int GetResponseCode () const
 Return the HTTP response code.
virtual void SetResponseCode (int responseCode)
 Set the HTTP response code.
void SetHttpClient (CurlHttpClient *httpClient)
void SetHttpRequest (RetsHttpRequest *httpRequest)
void SetInProgress (bool inProgress)
virtual std::string GetAdditionalErrorText ()
 Return any extended error text.
virtual void SetAdditionalErrorText (std::string errorText)
 Set any extended error text.
std::string GetContentType () const


Detailed Description

(Internal) CurlHttpResponse is a class that wraps the response from libcurl.

Constructor & Destructor Documentation

virtual ~CurlHttpResponse (  )  [virtual]


Member Function Documentation

virtual std::string GetAdditionalErrorText (  )  [virtual]

Return any extended error text.

Returns:
A string containing additional error information.

Implements RetsHttpResponse.

std::string GetContentType (  )  const [inherited]

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

Return a header value.

Returns:
Header value
Exceptions:
RetsException 

Implements RetsHttpResponse.

virtual istreamPtr GetInputStream (  )  const [virtual]

Return an input stream to the data.

Returns:
Input stream
Exceptions:
RetsException 

Implements RetsHttpResponse.

virtual int GetResponseCode (  )  const [virtual]

Return the HTTP response code.

Returns:
HTTP response code
Exceptions:
RetsException 

Implements RetsHttpResponse.

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

Set any extended error text.

Parameters:
errorText A string with additional error text.

Implements RetsHttpResponse.

void SetHeader ( std::string  name,
std::string  value 
)

void SetHttpClient ( CurlHttpClient httpClient  ) 

void SetHttpRequest ( RetsHttpRequest httpRequest  ) 

void SetInProgress ( bool  inProgress  ) 

virtual void SetResponseCode ( int  responseCode  )  [virtual]

Set the HTTP response code.

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

Implements RetsHttpResponse.

void SetStream ( iostreamPtr  inputStream  ) 

void SetUrl ( std::string  url  ) 

void WriteData ( const char *  data,
size_t  bytes 
)


Generated by  doxygen