[asp.net] Fix for bug #650695. Implements the System.Web.{HttpNotFoundHandler,HttpNot...
[mono.git] / mcs / class / System.Web / System.Web.UI / OutputCacheParameters.cs
1 //
2 // System.Web.UI.OutputCacheParameters.cs
3 //
4 // Noam Lampert  (noaml@mainsoft.com)
5 //
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining
8 // a copy of this software and associated documentation files (the
9 // "Software"), to deal in the Software without restriction, including
10 // without limitation the rights to use, copy, modify, merge, publish,
11 // distribute, sublicense, and/or sell copies of the Software, and to
12 // permit persons to whom the Software is furnished to do so, subject to
13 // the following conditions:
14 // 
15 // The above copyright notice and this permission notice shall be
16 // included in all copies or substantial portions of the Software.
17 // 
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 //
26 using System.ComponentModel;
27 using System.Security.Permissions;
28
29 namespace System.Web.UI
30 {
31         public sealed class OutputCacheParameters
32         {
33                 #region Fields
34
35                 string _cacheProfile;
36                 int _duration;
37                 bool _enabled;
38                 OutputCacheLocation _location;
39                 bool _noStore;
40                 string _sqlDependency;
41                 string _varByControl;
42                 string _varByCustom;
43                 string _varByHeader;
44                 string _varByParam;
45                 string _varyByContentEncoding;
46                 
47                 #endregion
48
49                 #region Constructors
50
51                 public OutputCacheParameters () {
52                         Duration = 0;
53                         Enabled = true;
54                         Location = OutputCacheLocation.Any;
55                         NoStore = false;
56                 }
57
58                 #endregion
59
60                 #region Properties
61
62                 public string CacheProfile {
63                         get { return _cacheProfile; }
64                         set { _cacheProfile = value; }
65                 }
66
67                 public int Duration {
68                         get { return _duration; }
69                         set { _duration = value; }
70                 }
71
72                 public bool Enabled {
73                         get { return _enabled; }
74                         set { _enabled = value; }
75                 }
76
77                 public OutputCacheLocation Location {
78                         get { return _location; }
79                         set { _location = value; }
80                 }
81
82                 public bool NoStore {
83                         get { return _noStore; }
84                         set { _noStore = value; }
85                 }
86
87                 public string SqlDependency {
88                         get { return _sqlDependency; }
89                         set { _sqlDependency = value; }
90                 }
91
92                 public string VaryByContentEncoding {
93                         get { return _varyByContentEncoding; }
94                         set { _varyByContentEncoding = value; }
95                 }
96                 
97                 public string VaryByControl {
98                         get { return _varByControl; }
99                         set { _varByControl = value; }
100                 }
101
102                 public string VaryByCustom {
103                         get { return _varByCustom; }
104                         set { _varByCustom = value; }
105                 }
106
107                 public string VaryByHeader {
108                         get { return _varByHeader; }
109                         set { _varByHeader = value; }
110                 }
111
112                 public string VaryByParam {
113                         get { return _varByParam; }
114                         set { _varByParam = value; }
115                 }
116
117                 #endregion
118
119                 #region Methods
120
121                 #endregion
122         }
123 }