各ピンへのread/writeを提供するサーバサンプル
Dependencies: NySNICInterface mbed-rtos mbed
Fork of RESTServerSample2 by
Diff: RequestHandler.h
- Revision:
- 0:998e2e00df0c
diff -r 000000000000 -r 998e2e00df0c RequestHandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RequestHandler.h Tue Feb 10 12:15:47 2015 +0000 @@ -0,0 +1,45 @@ +#ifndef REQUEST_HANDLER +#define REQUEST_HANDLER + +#include "RPCObject.h" + + + +class RequestHandler +{ + public : + + virtual int handle(RPCObject& cmd, char* reply) = 0; + + protected : +}; + +class GetRequestHandler : public RequestHandler +{ + public : + + virtual int handle(RPCObject& cmd, char* reply); + +}; + +class PostRequestHandler : public RequestHandler +{ + public : + + virtual int handle(RPCObject& cmd, char* reply); + +}; + + +class DeleteRequestHandler : public RequestHandler +{ + public : + + virtual int handle(RPCObject& cmd, char* reply); + +}; + + + +#endif +