File: servletentry.h

package info (click to toggle)
webxml 1.12-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 388 kB
  • ctags: 123
  • sloc: cpp: 1,054; xml: 62; makefile: 22
file content (87 lines) | stat: -rw-r--r-- 2,046 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include <qmap.h>
class ServletEntry
{
    private:
    typedef QMap<QString, QString> InitParam;
    InitParam initParam;
    QString ServletName;
    QString ServletClass;
    QString DisplayName;
    QString URLPattern;
    QString Description;
    QString LoadOnStartup;
    public:
    ServletEntry()
    {
	ServletName="";
	ServletClass="";
	DisplayName="";
	URLPattern="";
	Description="";
	LoadOnStartup="";
    }
    ServletEntry(const QString ServletName, const QString ServletClass, const QString DisplayName, const QString URLPattern, const QString Description, const QString LoadOnStartup):
	    ServletName(ServletName), ServletClass(ServletClass), DisplayName(DisplayName),URLPattern(URLPattern), Description(Description), LoadOnStartup(LoadOnStartup){}
    
    virtual ~ServletEntry(){}
    void setInitParam(const QString ParamName, const QString ParamValue)
    {
	initParam[ParamName]=ParamValue;
    }
    void clearInitParams()
    {
	initParam.clear();
    }
    QMap<QString, QString> getInitParameters()
    {
	return initParam;
    }
    void setServletName(const QString ServletName)
    {
	this->ServletName=ServletName;
    }
    void setServletClass(const QString ServletClass)
    {
	this->ServletClass=ServletClass;
    }
    void setDisplayName(const QString DisplayName)
    {
	this->DisplayName=DisplayName;
    }
    void setURLPattern(const QString URLPattern)
    {
	this->URLPattern=URLPattern;
    }
    void setDescription(const QString Description)
    {
	this->Description=Description;
    }
    void setLoadOnStartup(const QString LoadOnStartup)
    {
	this->LoadOnStartup=LoadOnStartup;
    }
    QString getServletName()
    {
	return ServletName;
    }
    QString getServletClass()
    {
	return this->ServletClass;
    }
    QString getDisplayName()
    {
	return this->DisplayName;
    }
    QString getURLPattern()
    {
	return this->URLPattern;
    }
    QString getDescription()
    {
	return this->Description;
    }
    QString getLoadOnStartup()
    {
	return this->LoadOnStartup;
    }
};