#include <HTTPS_SessionFactory.h>


Classes | |
| class | SessionHolder_Impl |
Public Member Functions | |
| virtual ACE::INet::ConnectionHolder * | create_connection (const ACE::INet::ConnectionKey &key) const |
Private Member Functions | |
| SessionFactory_Impl () | |
| virtual | ~SessionFactory_Impl () |
Static Private Attributes | |
| static SessionFactory_Impl & | factory_ |
Friends | |
| class | ACE_Singleton< SessionFactory_Impl, ACE_SYNCH::NULL_MUTEX > |
Definition at line 35 of file HTTPS_SessionFactory.h.
| ACE::HTTPS::SessionFactory_Impl::SessionFactory_Impl | ( | ) | [private] |
Definition at line 31 of file HTTPS_SessionFactory.cpp.
{
INET_DEBUG (6, (LM_INFO, DLINFO
ACE_TEXT ("HTTPS_SessionFactory_Impl::ctor - ")
ACE_TEXT ("registering session factory for scheme [%C]\n"),
URL::protocol ().c_str ()));
ACE::HTTP::SessionFactoryRegistry::instance ().register_session_factory (URL::protocol (), this);
}
| ACE::HTTPS::SessionFactory_Impl::~SessionFactory_Impl | ( | ) | [private, virtual] |
Definition at line 40 of file HTTPS_SessionFactory.cpp.
{
}
| ACE::INet::ConnectionHolder * ACE::HTTPS::SessionFactory_Impl::create_connection | ( | const ACE::INet::ConnectionKey & | key | ) | const [virtual] |
Implements ACE::INet::ConnectionFactory.
Definition at line 45 of file HTTPS_SessionFactory.cpp.
{
INET_TRACE ("HTTPS_SessionFactory_Impl::create_connection");
const ACE::HTTP::ClientRequestHandler::HttpConnectionKey& ikey =
dynamic_cast<const ACE::HTTP::ClientRequestHandler::HttpConnectionKey&> (key);
SessionHolder_Impl* session_holder = 0;
ACE_NEW_RETURN (session_holder,
SessionHolder_Impl (),
0);
ACE_Auto_Ptr<SessionHolder_Impl> session_safe_ref (session_holder);
(*session_holder)->set_host (ikey.host (), ikey.port ());
if (ikey.is_proxy_connection ())
{
(*session_holder)->set_proxy_target (ikey.proxy_target_host (),
ikey.proxy_target_port ());
}
if ((*session_holder)->connect (true))
{
return session_safe_ref.release ();
}
return 0;
}
friend class ACE_Singleton< SessionFactory_Impl, ACE_SYNCH::NULL_MUTEX > [friend] |
Definition at line 42 of file HTTPS_SessionFactory.h.
SessionFactory_Impl & ACE::HTTPS::SessionFactory_Impl::factory_ [static, private] |
Definition at line 44 of file HTTPS_SessionFactory.h.
1.7.0