00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093 #ifndef SECURITYMANAGER_HPP
00094 #define SECURITYMANAGER_HPP
00095
00096 #include <xercesc/util/XercesDefs.hpp>
00097
00098 XERCES_CPP_NAMESPACE_BEGIN
00099
00122 class SecurityManager
00123 {
00124 public:
00125
00126 enum { ENTITY_EXPANSION_LIMIT = 50000};
00127
00131 SecurityManager()
00132 : fEntityExpansionLimit(ENTITY_EXPANSION_LIMIT)
00133 {
00134 }
00135
00137 virtual ~SecurityManager(){};
00139
00154 virtual void setEntityExpansionLimit(unsigned int newLimit)
00155 {
00156 fEntityExpansionLimit = newLimit;
00157 }
00158
00166 virtual unsigned int getEntityExpansionLimit() const
00167 {
00168 return fEntityExpansionLimit;
00169 }
00171
00172 protected:
00173 unsigned int fEntityExpansionLimit;
00174
00175 private:
00176
00177
00178
00179 SecurityManager(const SecurityManager&);
00180
00182 SecurityManager& operator=(const SecurityManager&);
00183 };
00184
00185 XERCES_CPP_NAMESPACE_END
00186
00187 #endif