Modified to run on Renesas GR Peach board

Dependents:   GR-PeachAHRSWeb

Fork of HTTP-Server by F B

RequestHandler.h

Committer:
webOnBoard
Date:
2015-10-07
Revision:
11:d03f12a19999
Parent:
0:9e4bcb10b3e3

File content as of revision 11:d03f12a19999:

#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