00001 // -*- C++ -*- 00002 // 00003 // $Id: HTTP_ClientRequestHandler.inl 91118 2010-07-17 10:29:57Z mcorino $ 00004 00005 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 namespace ACE 00008 { 00009 namespace HTTP 00010 { 00011 ACE_INLINE 00012 SessionBase& SessionHolder::operator *() 00013 { 00014 return this->session (); 00015 } 00016 00017 ACE_INLINE 00018 SessionBase* SessionHolder::operator -> () 00019 { 00020 return &this->session (); 00021 } 00022 00023 ACE_INLINE 00024 bool ClientRequestHandler::HttpConnectionKey::is_proxy_connection () const 00025 { 00026 return this->proxy_connection_; 00027 } 00028 00029 ACE_INLINE 00030 const ACE_CString& ClientRequestHandler::HttpConnectionKey::proxy_target_host () const 00031 { 00032 return this->proxy_target_host_; 00033 } 00034 00035 ACE_INLINE 00036 u_short ClientRequestHandler::HttpConnectionKey::proxy_target_port () const 00037 { 00038 return this->proxy_target_port_; 00039 } 00040 00041 ACE_INLINE 00042 Request& ClientRequestHandler::request () 00043 { 00044 return this->request_; 00045 } 00046 00047 ACE_INLINE 00048 const Request& ClientRequestHandler::request () const 00049 { 00050 return this->request_; 00051 } 00052 00053 ACE_INLINE 00054 Response& ClientRequestHandler::response () 00055 { 00056 return this->response_; 00057 } 00058 00059 ACE_INLINE 00060 const Response& ClientRequestHandler::response () const 00061 { 00062 return this->response_; 00063 } 00064 00065 ACE_INLINE 00066 SessionHolder& ClientRequestHandler::session () 00067 { 00068 return *this->session_; 00069 } 00070 00071 ACE_INLINE 00072 void ClientRequestHandler::session (SessionHolder* session) 00073 { 00074 this->session_ = session; 00075 } 00076 00077 ACE_INLINE 00078 std::ostream& ClientRequestHandler::request_stream () 00079 { 00080 return this->session_ ? 00081 this->session ()->request_stream (*this) : 00082 ACE::IOS::Null::out_stream_; 00083 } 00084 00085 ACE_INLINE 00086 std::istream& ClientRequestHandler::response_stream () 00087 { 00088 return this->session_ ? 00089 this->session ()->response_stream (*this) : 00090 ACE::IOS::Null::in_stream_; 00091 } 00092 } 00093 } 00094 00095 ACE_END_VERSIONED_NAMESPACE_DECL