00001 // -*- C++ -*- 00002 // 00003 // $Id: HTTP_Response.inl 90450 2010-06-08 07:25:58Z mcorino $ 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 namespace ACE 00008 { 00009 namespace HTTP 00010 { 00011 00012 ACE_INLINE 00013 void Response::reset () 00014 { 00015 this->clear (); 00016 this->set_version (EMPTY); 00017 this->status_ = Status (); 00018 } 00019 00020 ACE_INLINE 00021 void Response::reset (const Status& status) 00022 { 00023 this->clear (); 00024 this->set_version (EMPTY); 00025 this->status_ = status; 00026 } 00027 00028 ACE_INLINE 00029 void Response::reset (const ACE_CString& version, const Status& status) 00030 { 00031 this->clear (); 00032 this->set_version (version); 00033 this->status_ = status; 00034 } 00035 00036 ACE_INLINE 00037 void Response::set_status(const Status& status) 00038 { 00039 this->status_ = status; 00040 } 00041 00042 /// Return the status. 00043 ACE_INLINE 00044 const Status& Response::get_status() const 00045 { 00046 return this->status_; 00047 } 00048 00049 } 00050 } 00051 00052 ACE_END_VERSIONED_NAMESPACE_DECL