BESCmdParser Class Reference

parses an incoming request and creates the information necessary to carry out the request. More...

#include <BESCmdParser.h>

List of all members.

Public Member Functions

 BESCmdParser ()
 ~BESCmdParser ()

Static Public Member Functions

static void parse (const string &, BESDataHandlerInterface &)
 parse the request string and build the execution plan for the request.


Detailed Description

parses an incoming request and creates the information necessary to carry out the request.

Parses the incoming request, retrieving first the type of response object that is being requested and passing off the parsing of the request to that response handler. For example, if a "get" request is being sent, the parser parses the string "get", locates the response handler that handes a "get" request, and hands off the parsing of the ramaining request string to that response handler.

First, the parser builds the list of tokens using the BESTokernizer object. This list of tokens is then passed to the response handler to parse the remainder of the request.

All requests must end with a semicolon.

See also:
BESTokenizer

BESParserException

Definition at line 61 of file BESCmdParser.h.


Constructor & Destructor Documentation

BESCmdParser::BESCmdParser (  ) 

Definition at line 39 of file BESCmdParser.cc.

BESCmdParser::~BESCmdParser (  ) 

Definition at line 43 of file BESCmdParser.cc.


Member Function Documentation

void BESCmdParser::parse ( const string &  request,
BESDataHandlerInterface dhi 
) [static]

parse the request string and build the execution plan for the request.

Parse the request string into a list of tokens using the BESTokenizer object and builds the execution plan for the request. This plan includes the type of response object that is being requested.

Parameters:
request string representing the request from the client
dhi information needed to build the request and to store request information for the server
Exceptions:
BESParserException thrown if there is an error in syntax
See also:
BESTokenizer

BESResponseHandler

_BESDataHandlerInterface

Definition at line 63 of file BESCmdParser.cc.

References BESCommand::find_command(), BESTokenizer::get_first_token(), BESCommand::parse_request(), _BESDataHandlerInterface::response_handler, and BESTokenizer::tokenize().

Referenced by BESCmdInterface::build_data_request_plan().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Nov 30 12:10:57 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.1