This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
ModBaseClass.h
00001 #pragma once 00002 //////////////////////////////////////////////////////////////////////////////// 00003 // ModBaseClass.h 00004 //////////////////////////////////////////////////////////////////////////////// 00005 00006 #include "NyLPC_net.h" 00007 00008 00009 namespace MiMic 00010 { 00011 class HttpdConnection; 00012 00013 class ModBaseClass 00014 { 00015 protected: 00016 char* _path; 00017 public: 00018 /** 00019 * @param i_path 00020 * target path 00021 * <pre> 00022 * ex.setParam("root") 00023 * </pre> 00024 */ 00025 ModBaseClass(const char* i_path); 00026 ModBaseClass(); 00027 virtual ~ModBaseClass(); 00028 protected: 00029 /** 00030 * @param i_path 00031 * target path 00032 * <pre> 00033 * ex.setParam("") 00034 * </pre> 00035 */ 00036 void setParam(const char* i_path); 00037 /** 00038 * URLとパスプレフィクスi_pathを比較して、処理対象のURLかを計算します。 00039 * URLに'/i_path/'を含むパスを処理対象とみなします。 00040 */ 00041 virtual bool canHandle(HttpdConnection& i_connection); 00042 }; 00043 }
Generated on Tue Jul 12 2022 15:46:14 by 1.7.2