acl  3.5.3.0
acl::http_servlet_impl类 参考

#include <http_servlet_impl.hpp>

+ 类 acl::http_servlet_impl 继承关系图:
+ acl::http_servlet_impl 的协作图:

Public 成员函数

 http_servlet_impl (http_handlers_t *handlers, socket_stream *stream, session *session)
 
virtual ~http_servlet_impl (void)
 
- Public 成员函数 继承自 acl::HttpServlet
 HttpServlet (socket_stream *stream, session *session)
 
 HttpServlet (socket_stream *stream, const char *memcache_addr="127.0.0.1|11211")
 
 HttpServlet (void)
 
virtual ~HttpServlet (void)=0
 
sessiongetSession (void) const
 
socket_streamgetStream (void) const
 
HttpServletsetLocalCharset (const char *charset)
 
HttpServletsetRwTimeout (int rw_timeout)
 
HttpServletsetParseBody (bool on)
 
HttpServletsetParseBodyLimit (int length)
 
bool start (void)
 
virtual bool doRun (void)
 
virtual bool doRun (session &session, socket_stream *stream=NULL)
 
virtual bool doRun (const char *memcached_addr, socket_stream *stream)
 

Protected 成员函数

bool doGet (HttpRequest &req, HttpResponse &res)
 
bool doPost (HttpRequest &req, HttpResponse &res)
 
bool doHead (HttpRequest &req, HttpResponse &res)
 
bool doPut (HttpRequest &req, HttpResponse &res)
 
bool doPatch (HttpRequest &req, HttpResponse &res)
 
bool doConnect (HttpRequest &req, HttpResponse &res)
 
bool doPurge (HttpRequest &req, HttpResponse &res)
 
bool doDelete (HttpRequest &req, HttpResponse &res)
 
bool doOptions (HttpRequest &req, HttpResponse &res)
 
bool doProfind (HttpRequest &req, HttpResponse &res)
 
bool doWebsocket (HttpRequest &req, HttpResponse &res)
 
bool doUnknown (HttpRequest &req, HttpResponse &res)
 
bool doError (HttpRequest &req, HttpResponse &res)
 
- Protected 成员函数 继承自 acl::HttpServlet
virtual bool doWebSocket (HttpServletRequest &, HttpServletResponse &)
 
virtual bool doPropfind (HttpServletRequest &, HttpServletResponse &)
 
virtual bool doOther (HttpServletRequest &, HttpServletResponse &, const char *method)
 
- Protected 成员函数 继承自 acl::acl::noncopyable
 noncopyable ()
 
 ~noncopyable ()
 

额外继承的成员函数

- Protected 属性 继承自 acl::HttpServlet
HttpServletRequestreq_
 
HttpServletResponseres_
 

详细描述

在文件 http_servlet_impl.hpp36 行定义.

构造及析构函数说明

◆ http_servlet_impl()

acl::http_servlet_impl::http_servlet_impl ( http_handlers_t handlers,
socket_stream stream,
session session 
)
inline

在文件 http_servlet_impl.hpp38 行定义.

40  : HttpServlet(stream, session), handlers_(handlers) {}

◆ ~http_servlet_impl()

virtual acl::http_servlet_impl::~http_servlet_impl ( void  )
inlinevirtual

在文件 http_servlet_impl.hpp42 行定义.

42 {}

成员函数说明

◆ doConnect()

bool acl::http_servlet_impl::doConnect ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp71 行定义.

71  {
72  return doService(http_handler_connect, req, res);
73  }

引用了 acl::http_handler_connect.

◆ doDelete()

bool acl::http_servlet_impl::doDelete ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp81 行定义.

81  {
82  return doService(http_handler_delete, req, res);
83  }

引用了 acl::http_handler_delete.

◆ doError()

bool acl::http_servlet_impl::doError ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp106 行定义.

106  {
107  return doService(http_handler_error, req, res);
108  }

引用了 acl::http_handler_error.

◆ doGet()

bool acl::http_servlet_impl::doGet ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp46 行定义.

46  {
47  return doService(http_handler_get, req, res);
48  }

引用了 acl::http_handler_get.

◆ doHead()

bool acl::http_servlet_impl::doHead ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp56 行定义.

56  {
57  return doService(http_handler_head, req, res);
58  }

引用了 acl::http_handler_head.

◆ doOptions()

bool acl::http_servlet_impl::doOptions ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp86 行定义.

86  {
87  return doService(http_handler_options, req, res);
88  }

引用了 acl::http_handler_options.

◆ doPatch()

bool acl::http_servlet_impl::doPatch ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp66 行定义.

66  {
67  return doService(http_handler_patch, req, res);
68  }

引用了 acl::http_handler_patch.

◆ doPost()

bool acl::http_servlet_impl::doPost ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp51 行定义.

51  {
52  return doService(http_handler_post, req, res);
53  }

引用了 acl::http_handler_post.

◆ doProfind()

bool acl::http_servlet_impl::doProfind ( HttpRequest req,
HttpResponse res 
)
inlineprotected

在文件 http_servlet_impl.hpp91 行定义.

91  {
92  return doService(http_handler_profind, req, res);
93  }

引用了 acl::http_handler_profind.

◆ doPurge()

bool acl::http_servlet_impl::doPurge ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp76 行定义.

76  {
77  return doService(http_handler_purge, req, res);
78  }

引用了 acl::http_handler_purge.

◆ doPut()

bool acl::http_servlet_impl::doPut ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp61 行定义.

61  {
62  return doService(http_handler_put, req, res);
63  }

引用了 acl::http_handler_put.

◆ doUnknown()

bool acl::http_servlet_impl::doUnknown ( HttpRequest req,
HttpResponse res 
)
inlineprotectedvirtual

重载 acl::HttpServlet .

在文件 http_servlet_impl.hpp101 行定义.

101  {
102  return doService(http_handler_unknown, req, res);
103  }

引用了 acl::http_handler_unknown.

◆ doWebsocket()

bool acl::http_servlet_impl::doWebsocket ( HttpRequest req,
HttpResponse res 
)
inlineprotected

在文件 http_servlet_impl.hpp96 行定义.

96  {
97  return doService(http_handler_websocket, req, res);
98  }

引用了 acl::http_handler_websocket.


该类的文档由以下文件生成: