RPC mbed Server (basierend auf HTTP Protokoll) mit UI via Browser

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

Fork of HTTP-Server by Francois Berder

RequestHandler.h

Committer:
feb11
Date:
2013-07-17
Revision:
0:9e4bcb10b3e3

File content as of revision 0:9e4bcb10b3e3:

#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