Working version as of 11/17

Dependencies:   4DGL-uLCD-SE EthernetInterface NTPClient mbed-rpc mbed-rtos mbed HTTPClient spxml

RequestHandler.h

Committer:
prabbat3
Date:
2014-12-02
Revision:
7:b0f2169bdf48
Parent:
0:0a99e3fc2a46

File content as of revision 7:b0f2169bdf48:

#ifndef REQUEST_HANDLER
#define REQUEST_HANDLER

#include "RPCCommand.h"

class RequestHandler
{
    public :
        
        virtual void handle(const RPCCommand& cmd, char* reply) = 0;
};

class GetRequestHandler : public RequestHandler
{
    public :
    
        virtual void handle(const RPCCommand& cmd, char* reply);
};

class PutRequestHandler : public RequestHandler
{
    public :
        
        virtual void handle(const RPCCommand& cmd, char* reply);

};


class DeleteRequestHandler : public RequestHandler
{
    public :
            
        virtual void handle(const RPCCommand& cmd, char* reply);

};

class ComplexRequestHandler : public RequestHandler
{
    public :
        
        virtual void handle(const RPCCommand& cmd, char* reply);
        
    private :
        
        GetRequestHandler getHandler;
        PutRequestHandler putHandler;
        DeleteRequestHandler deleteHandler;
};

#endif