ported HTTP-Server with W5500 Ethernet Shield

Dependencies:   W5500Interface mbed-rpc mbed

Fork of HTTP-Server by F B

RequestHandler.h

Committer:
embeddist
Date:
2015-04-28
Revision:
11:ac3569846176
Parent:
0:9e4bcb10b3e3

File content as of revision 11:ac3569846176:

#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