ACE_INet  6.0.8
Classes | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Static Protected Attributes | Private Attributes
ACE::FTP::ClientRequestHandler Class Reference

#include <FTP_ClientRequestHandler.h>

Inheritance diagram for ACE::FTP::ClientRequestHandler:
Inheritance graph
Collaboration diagram for ACE::FTP::ClientRequestHandler:
Collaboration graph

List of all members.


class  Authentication
class  SessionFactory
class  SessionHolder

Public Member Functions

 ClientRequestHandler (bool passive_mode=true)
virtual ~ClientRequestHandler ()
bool uses_passive_mode () const
void use_passive_mode ()
void use_active_mode (u_short port=0)
u_short uses_active_port () const
virtual Requestrequest ()
virtual const Requestrequest () const
virtual Responseresponse ()
virtual const Responseresponse () const
std::ostream & request_stream ()
virtual std::istream & response_stream ()
virtual bool is_response_ok () const
virtual std::istream & handle_open_request (const ACE::INet::URL_Base &url)
virtual std::istream & handle_get_request (const URL &url, bool binary=true)
void quit_connection ()

Static Public Attributes

static const ACE_CString anonymous_user_ = "anonymous"

Protected Types

typedef Session_T< ACE_SYNCH >

Protected Member Functions

virtual void on_eof ()
SessionHoldersession ()
void session (SessionHolder *session)
virtual bool initialize_connection (const ACE_CString &host, u_short port)
virtual bool handle_credentials (const URL &url, ACE_CString &user, ACE_CString &password)
virtual void handle_request_error (const URL &url)
virtual void handle_connection_error (const URL &url)
void release_connection ()
void close_connection ()
bool login (const ACE_CString &user, const ACE_CString &password)
bool logout ()
bool is_valid_path (const ACE_CString &path)
bool is_file (const ACE_CString &path)
bool is_dir (const ACE_CString &path)
bool set_filetype (bool binary)
stream_typestart_download (const ACE_CString &path, bool binary)
stream_typestart_upload (const ACE_CString &path, bool binary)
bool finish_transfer ()
bool abort_transfer ()
Response::StatusType process_command (const ACE_CString &cmd, const ACE_CString &arg=empty_)
stream_typeopen_data_connection (const ACE_CString &cmd, const ACE_CString &arg)
bool get_passive_address (ACE_INET_Addr &addr)
bool parse_address (const ACE_CString &str, ACE_INET_Addr &addr)
bool parse_ext_address (const ACE_CString &str, ACE_INET_Addr &addr)
bool send_active_address (const ACE_INET_Addr &addr)

Static Protected Attributes

static const ACE_CString empty_

Private Attributes

Request request_
Response response_
bool use_passive_mode_
u_short active_port_
OStream out_data_stream_
IStream in_data_stream_
bool transfer_active_
ACE_CString current_user_

Member Typedef Documentation

Constructor & Destructor Documentation

ACE::FTP::ClientRequestHandler::ClientRequestHandler ( bool  passive_mode = true)
ACE::FTP::ClientRequestHandler::~ClientRequestHandler ( ) [virtual]

Reimplemented from ACE::INet::ClientRequestHandler.

Member Function Documentation

bool ACE::FTP::ClientRequestHandler::abort_transfer ( ) [protected]
void ACE::FTP::ClientRequestHandler::close_connection ( ) [protected]
bool ACE::FTP::ClientRequestHandler::finish_transfer ( ) [protected]
bool ACE::FTP::ClientRequestHandler::get_passive_address ( ACE_INET_Addr addr) [protected]
void ACE::FTP::ClientRequestHandler::handle_connection_error ( const URL url) [protected, virtual]

Reimplemented in My_FTP_RequestHandler.

bool ACE::FTP::ClientRequestHandler::handle_credentials ( const URL url,
ACE_CString user,
ACE_CString password 
) [protected, virtual]
std::istream & ACE::FTP::ClientRequestHandler::handle_get_request ( const URL url,
bool  binary = true 
) [virtual]
std::istream & ACE::FTP::ClientRequestHandler::handle_open_request ( const ACE::INet::URL_Base url) [virtual]
void ACE::FTP::ClientRequestHandler::handle_request_error ( const URL url) [protected, virtual]

Reimplemented in My_FTP_RequestHandler.

bool ACE::FTP::ClientRequestHandler::initialize_connection ( const ACE_CString host,
u_short  port 
) [protected, virtual]
bool ACE::FTP::ClientRequestHandler::is_dir ( const ACE_CString path) [protected]
bool ACE::FTP::ClientRequestHandler::is_file ( const ACE_CString path) [protected]
bool ACE::FTP::ClientRequestHandler::is_response_ok ( ) const [virtual]
bool ACE::FTP::ClientRequestHandler::is_valid_path ( const ACE_CString path) [protected]
bool ACE::FTP::ClientRequestHandler::login ( const ACE_CString user,
const ACE_CString password 
) [protected]
bool ACE::FTP::ClientRequestHandler::logout ( ) [protected]
void ACE::FTP::ClientRequestHandler::on_eof ( void  ) [protected, virtual]
ClientRequestHandler::stream_type * ACE::FTP::ClientRequestHandler::open_data_connection ( const ACE_CString cmd,
const ACE_CString arg 
) [protected]
bool ACE::FTP::ClientRequestHandler::parse_address ( const ACE_CString str,
ACE_INET_Addr addr 
) [protected]
bool ACE::FTP::ClientRequestHandler::parse_ext_address ( const ACE_CString str,
ACE_INET_Addr addr 
) [protected]
Response::StatusType ACE::FTP::ClientRequestHandler::process_command ( const ACE_CString cmd,
const ACE_CString arg = empty_ 
) [protected]
void ACE::FTP::ClientRequestHandler::quit_connection ( )
void ACE::FTP::ClientRequestHandler::release_connection ( ) [protected]
Request & ACE::FTP::ClientRequestHandler::request ( ) [inline, virtual]
const Request & ACE::FTP::ClientRequestHandler::request ( ) const [inline, virtual]
std::ostream & ACE::FTP::ClientRequestHandler::request_stream ( ) [inline]
Response & ACE::FTP::ClientRequestHandler::response ( ) [inline, virtual]
const Response & ACE::FTP::ClientRequestHandler::response ( ) const [inline, virtual]
std::istream & ACE::FTP::ClientRequestHandler::response_stream ( ) [inline, virtual]
bool ACE::FTP::ClientRequestHandler::send_active_address ( const ACE_INET_Addr addr) [protected]
ClientRequestHandler::SessionHolder & ACE::FTP::ClientRequestHandler::session ( ) [inline, protected]
void ACE::FTP::ClientRequestHandler::session ( SessionHolder session) [inline, protected]
bool ACE::FTP::ClientRequestHandler::set_filetype ( bool  binary) [protected]
ClientRequestHandler::stream_type * ACE::FTP::ClientRequestHandler::start_download ( const ACE_CString path,
bool  binary 
) [protected]
ClientRequestHandler::stream_type * ACE::FTP::ClientRequestHandler::start_upload ( const ACE_CString path,
bool  binary 
) [protected]
void ACE::FTP::ClientRequestHandler::use_active_mode ( u_short  port = 0) [inline]
void ACE::FTP::ClientRequestHandler::use_passive_mode ( ) [inline]
u_short ACE::FTP::ClientRequestHandler::uses_active_port ( ) const [inline]
bool ACE::FTP::ClientRequestHandler::uses_passive_mode ( ) const [inline]

Member Data Documentation

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines