43 #include "BESDefaultCommands.h" 53 BESDefaultCommands::initialize( 0, 0 ) ;
62 delete [] _data_request ;
67 delete [] _user_name ;
92 interface.finish_with_error( status ) ;
105 string str = h.
get_key(
"request" ) ;
118 return (*rcurr).c_str() ;
135 return (*rcurr).c_str() ;
149 string str = h.
get_key(
"username" ) ;
152 _user_name =
new char[strlen( str.c_str() ) + 1] ;
153 strcpy( _user_name, str.c_str() ) ;
157 _user_name =
new char[strlen( str.c_str() ) + 20] ;
158 sprintf( _user_name,
"OpenDAP.remoteuser=%s", str.c_str() ) ;
172 string str = h.
get_key(
"token" ) ;
173 _token =
new char[strlen( str.c_str() ) + 1] ;
174 strcpy( _token, str.c_str() ) ;
virtual requests_citer get_end_request()
static int initialize(int argc, char **argv)
virtual int execute_request()
Override execute_request in order to register memory pool.
const char * process_token(const char *s)
Find the session token from the URL and convert it to readable format.
const char * process_user(const char *s)
Find the username from the URL and convert it to readable format.
list< string >::const_iterator requests_citer
static bool BESGlobalQuit(void)
Runs the termination functions in reverse order of initialization, providing the application to clean...
int call_BES(const BESDataRequestInterface &re)
Execute the given request using BESApacheInterface interface.
Structure storing information from the Apache module.
virtual requests_citer get_first_request()
const char * get_next_request()
void process_request(const char *s)
Find the request from the URL and convert it to readable format.
static bool BESGlobalInit(int argc, char **argv)
initialize global objects in an orderly fashion.
Entry point into OPeNDAP using apache modules.
const char * get_first_request()
string get_key(const string &s)