LLURLRequestComplete Class Reference

Class which can optionally be used with an LLURLRequest to get notification when the url request is complete. More...

#include <llurlrequest.h>

Inheritance diagram for LLURLRequestComplete:

Inheritance graph
[legend]
Collaboration diagram for LLURLRequestComplete:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void header (const std::string &header, const std::string &value)
 Called once for each header received, prior to httpStatus.
virtual void httpStatus (U32 status, const std::string &reason)
 Always called on request completion, prior to complete.
virtual void complete (const LLChannelDescriptors &channels, const buffer_ptr_t &buffer)
virtual void response (const LLChannelDescriptors &channels, const buffer_ptr_t &buffer)
 This method is called when we got a valid response.
virtual void noResponse ()
 This method is called if there was no response.
void responseStatus (EStatus status)
 This method will be called by the LLURLRequest object.
 LLURLRequestComplete ()
virtual ~LLURLRequestComplete ()

Protected Member Functions

virtual EStatus process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump)
 Process the data in buffer.

Protected Attributes

EStatus mRequestStatus


Detailed Description

Class which can optionally be used with an LLURLRequest to get notification when the url request is complete.

Definition at line 285 of file llurlrequest.h.


Constructor & Destructor Documentation

LLURLRequestComplete::LLURLRequestComplete (  ) 

LLURLRequestComplete::~LLURLRequestComplete (  )  [virtual]

Definition at line 562 of file llurlrequest.cpp.

References LLMemType::MTYPE_IO_URL_REQUEST.


Member Function Documentation

void LLURLRequestComplete::header ( const std::string &  header,
const std::string &  value 
) [virtual]

Called once for each header received, prior to httpStatus.

Definition at line 568 of file llurlrequest.cpp.

Referenced by headerCallback().

Here is the caller graph for this function:

void LLURLRequestComplete::httpStatus ( U32  status,
const std::string &  reason 
) [virtual]

Always called on request completion, prior to complete.

Definition at line 573 of file llurlrequest.cpp.

Referenced by LLURLRequest::handleError(), and headerCallback().

Here is the caller graph for this function:

void LLURLRequestComplete::complete ( const LLChannelDescriptors channels,
const buffer_ptr_t buffer 
) [virtual]

Definition at line 578 of file llurlrequest.cpp.

References mRequestStatus, noResponse(), response(), and LLIOPipe::STATUS_OK.

Referenced by process_impl().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLURLRequestComplete::response ( const LLChannelDescriptors channels,
const buffer_ptr_t buffer 
) [virtual]

This method is called when we got a valid response.

It is up to class implementers to do something useful here.

Definition at line 592 of file llurlrequest.cpp.

References llendl, and llwarns.

Referenced by complete().

Here is the caller graph for this function:

void LLURLRequestComplete::noResponse (  )  [virtual]

This method is called if there was no response.

It is up to class implementers to do something useful here.

Definition at line 600 of file llurlrequest.cpp.

References llendl, and llwarns.

Referenced by complete().

Here is the caller graph for this function:

void LLURLRequestComplete::responseStatus ( LLIOPipe::EStatus  status  ) 

This method will be called by the LLURLRequest object.

If this is set to STATUS_OK or STATUS_STOP, then the transfer is asssumed to have worked. This will lead to calling response() on the next call to process(). Otherwise, this object will call noResponse() on the next call to process.

Parameters:
status The status of the URLRequest.

Definition at line 606 of file llurlrequest.cpp.

References mRequestStatus, and LLMemType::MTYPE_IO_URL_REQUEST.

Referenced by LLURLRequest::handleError(), and LLURLRequest::process_impl().

Here is the caller graph for this function:

LLIOPipe::EStatus LLURLRequestComplete::process_impl ( const LLChannelDescriptors channels,
buffer_ptr_t buffer,
bool &  eos,
LLSD context,
LLPumpIO pump 
) [protected, virtual]

Process the data in buffer.

Definition at line 613 of file llurlrequest.cpp.

References complete(), PUMP_DEBUG, and LLIOPipe::STATUS_OK.

Here is the call graph for this function:


Member Data Documentation

Definition at line 347 of file llurlrequest.h.

Referenced by complete(), and responseStatus().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:20:48 2008 for SecondLife by  doxygen 1.5.5