LLHTTPClient::Responder Class Reference

#include <llhttpclient.h>

Inheritance diagram for LLHTTPClient::Responder:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Responder ()
virtual ~Responder ()
virtual void error (U32 status, const std::string &reason)
virtual void result (const LLSD &content)
virtual void completedRaw (U32 status, const std::string &reason, const LLChannelDescriptors &channels, const LLIOPipe::buffer_ptr_t &buffer)
virtual void completed (U32 status, const std::string &reason, const LLSD &content)

Static Public Member Functions

static bool isGoodStatus (U32 status)
 return true if the status code indicates success.

Public Attributes

U32 mReferenceCount

Detailed Description

Definition at line 57 of file llhttpclient.h.


Constructor & Destructor Documentation

LLHTTPClient::Responder::Responder (  ) 

Definition at line 52 of file llhttpclient.cpp.

LLHTTPClient::Responder::~Responder (  )  [virtual]

Definition at line 57 of file llhttpclient.cpp.


Member Function Documentation

void LLHTTPClient::Responder::completed ( U32  status,
const std::string &  reason,
const LLSD content 
) [virtual]

The default implemetnation calls either: result(), or error()

Reimplemented in tut::HTTPClientTestData::Result.

Definition at line 97 of file llhttpclient.cpp.

References error(), isGoodStatus(), and result().

Referenced by tut::HTTPClientTestData::Result::completed(), and completedRaw().

void LLHTTPClient::Responder::completedRaw ( U32  status,
const std::string &  reason,
const LLChannelDescriptors channels,
const LLIOPipe::buffer_ptr_t buffer 
) [virtual]

Definition at line 74 of file llhttpclient.cpp.

References completed(), LLSDSerialize::fromXML(), and isGoodStatus().

void LLHTTPClient::Responder::error ( U32  status,
const std::string &  reason 
) [virtual]

Reimplemented in LLAssetUploadResponder, LLClassifiedStatsResponder, LLHTTPFetchTree, LLHTTPFetchContent, LLUserReportResponder, LLIamHere, LLVoiceCallCapResponder, LLSessionInviteResponder, LLViewerChatterBoxInvitationAcceptResponder, LLIamHereLogin, LLRemoteParcelRequestResponder, LLHTTPUpdateResponder, LLTextureFetchWorker::URLResponder, LLCopyInventoryFromNotecardResponder, BaseCapabilitiesComplete, LLViewerVoiceAccountProvisionResponder, LLVoiceClientCapResponder, ViewerStatsResponder, and tut::HTTPClientTestData::Result.

Definition at line 62 of file llhttpclient.cpp.

References llendl, and llinfos.

Referenced by completed().

static bool LLHTTPClient::Responder::isGoodStatus ( U32  status  )  [inline, static]

return true if the status code indicates success.

Definition at line 66 of file llhttpclient.h.

Referenced by completed(), and completedRaw().

void LLHTTPClient::Responder::result ( const LLSD content  )  [virtual]

Reimplemented in LLAssetUploadResponder, LLClassifiedStatsResponder, LLHTTPFetchTree, LLHTTPFetchContent, LLUserReportResponder, LLIamHere, LLVoiceCallCapResponder, LLViewerChatterBoxInvitationAcceptResponder, LLMapLayerResponder, LLIamHereLogin, LLRemoteParcelRequestResponder, LLHTTPUpdateResponder, LLTextureFetchWorker::URLResponder, LLCopyInventoryFromNotecardResponder, BaseCapabilitiesComplete, LLViewerVoiceAccountProvisionResponder, LLVoiceClientCapResponder, ViewerStatsResponder, and tut::HTTPClientTestData::Result.

Definition at line 69 of file llhttpclient.cpp.

Referenced by completed().


Member Data Documentation

U32 LLHTTPClient::Responder::mReferenceCount

Definition at line 87 of file llhttpclient.h.


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:24 2010 for Second Life Viewer by  doxygen 1.4.7