DCL 4.0
Loading...
Searching...
No Matches
HttpServletEx.h
Go to the documentation of this file.
1#ifndef __DCL_HTTP_SERVLET_EX_H__
2#define __DCL_HTTP_SERVLET_EX_H__ 20050530
3
4
5#ifndef __DCL_HTTP_SERVLET_H__
6#include <dcl/HttpServlet.h>
7#endif
8#ifndef __DCL_HTTP_COLLECTION_H__
10#endif
11#ifndef __DCL_LISTED_HASH_MAP_H__
12#include <dcl/ListedHashMap.h>
13#endif
14#ifndef __DCL_STRING_WRITER_H__
15#include <dcl/StringWriter.h>
16#endif
17
18__DCL_BEGIN_NAMESPACE
19
20class HttpServletEx;
21
23{
25public:
26 ListedStringToStringMap __cookieMap;
27 ListedStringToStringArrayMap __queryMap;
28 ListedStringToStringArrayMap __formMap;
29 StoredHttpFormData __formFileMap;
30
31public:
33
34protected:
36 const DCL_HTTP_SERVER_API* _SAPI,
37 const DCL_HTTP_SERVLET_CONTEXT* _context,
38 const String& _tempPath
39 );
40 virtual ~HttpServletContextEx();
41
42 void initRequest(size_t nMaxContentLength) __DCL_THROWS1(FormDataException*);
43
45
46 friend class HttpServletEx;
47};
48
50{
52public:
54
55protected:
57
58#ifdef __DCL_DEBUG
59 // Content-Type이 text/* 일 경우 __DCL_TRACE의 내용을 추가
60 bool m_bEnableDebugOut;
61#endif
62
63protected:
64 virtual void onInitialize()
66
67 virtual void onService(
70
71private:
72 virtual void onHttpService(
73 const DCL_HTTP_SERVLET_CONTEXT* pContext
75};
76
77__DCL_END_NAMESPACE
78
79#endif // __DCL_HTTP_SERVLET_EX_H__
#define DCLCAPI
Definition Config.h:100
#define __DCL_THROWS1(e)
Definition Config.h:167
struct _DCL_HTTP_SERVLET_CONTEXT DCL_HTTP_SERVLET_CONTEXT
struct _DCL_HTTP_SERVER_API DCL_HTTP_SERVER_API
#define DECLARE_CLASSINFO(class_name)
Definition Object.h:210
StringWriter __responseBuf
void initRequest(size_t nMaxContentLength) __DCL_THROWS1(FormDataException *)
HttpServletContextEx(const DCL_HTTP_SERVER_API *_SAPI, const DCL_HTTP_SERVLET_CONTEXT *_context, const String &_tempPath)
StringWriter & writer()
friend class HttpServletEx
virtual void onInitialize() __DCL_THROWS1(Exception *)
virtual void onService(HttpServletContextEx &ctx)=0__DCL_THROWS1(Exception *)
size_t m_nMaxContentLength