MongoDB  2.7.0
Public Member Functions | Static Public Member Functions | List of all members
mongo::MiniWebServer Class Referenceabstract
Inheritance diagram for mongo::MiniWebServer:
mongo::Listener

Public Member Functions

 MiniWebServer (const string &name, const string &ip, int _port)
 
virtual void doRequest (const char *rq, string url, string &responseMsg, int &responseCode, vector< string > &headers, const SockAddr &from)=0
 
- Public Member Functions inherited from mongo::Listener
 Listener (const std::string &name, const std::string &ip, int port, bool logConnect=true)
 
void initAndListen ()
 
virtual void acceptedMP (MessagingPort *mp)
 
long long getMyElapsedTimeMillis () const
 
void setupSockets ()
 Allocate sockets for the listener and set _setupSocketsSuccessful to true iff the process was successful.
 
void setAsTimeTracker ()
 

Static Public Member Functions

static void parseParams (BSONObj &params, string query)
 
static string parseURL (const char *buf)
 
static string parseMethod (const char *headers)
 
static string getHeader (const char *headers, const std::string &name)
 
static const char * body (const char *buf)
 
static string urlDecode (const char *s)
 
static string urlDecode (const std::string &s)
 
- Static Public Member Functions inherited from mongo::Listener
static const ListenergetTimeTracker ()
 
static long long getElapsedTimeMillis ()
 
static void checkTicketNumbers ()
 makes sure user input is sane
 

Additional Inherited Members

- Public Attributes inherited from mongo::Listener
const int _port
 
- Static Public Attributes inherited from mongo::Listener
static AtomicInt64 globalConnectionNumber
 the "next" connection number. More...
 
static TicketHolder globalTicketHolder
 keeps track of how many allowed connections there are and how many are being used
 

The documentation for this class was generated from the following files: