00001 //*** HTTP_Resource.cpp *** 00002 00003 #include "HTTP_Resource.h" 00004 00005 00006 //*** Constructor *** 00007 00008 HTTP_Resource::HTTP_Resource(int requestHandle, StringId type, const StaticBuffer& data): 00009 requestHandle_(requestHandle), 00010 type_(type), 00011 data_(data) 00012 { 00013 00014 00015 } 00016 00017 00018 //*** Destructor *** 00019 00020 HTTP_Resource::~HTTP_Resource() 00021 { 00022 } 00023 00024 00025 //*** GetType *** 00026 00027 StringId HTTP_Resource::GetType() 00028 { 00029 return type_; 00030 } 00031 00032 00033 //*** GetRequestHandle *** 00034 00035 int HTTP_Resource::GetRequestHandle() 00036 { 00037 return requestHandle_; 00038 } 00039 00040 00041 //*** GetData *** 00042 00043 const StaticBuffer& HTTP_Resource::GetData() 00044 { 00045 return data_; 00046 }