(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Routing / Path.cs
blob5ca1ff2d59387cece66af244238fbeab58bce340
1 //
2 // Microsoft.Web.Services.Routing.Path.cs
3 //
4 // Name: Duncan Mak (duncan@ximian.com)
5 //
6 // Copyright (C) Ximian, Inc. 2003
7 //
9 using System;
10 using System.Globalization;
11 using System.Web.Services.Protocols;
12 using System.Xml;
14 namespace Microsoft.Web.Services.Routing {
16 [MonoTODO]
17 public class Path : SoapHeader, ICloneable
19 #if WSE1
20 XmlElement element;
21 #endif
22 private ViaCollection _forward;
23 private ViaCollection _reverse;
24 private RoutingFault _fault;
26 #if WSE1
27 internal Path () {}
28 #else
29 public Path () {
30 Actor = "http://schemas.xmlsoap.org/soap/actor/next";
31 MustUnderstand = true;
33 #endif
35 #if WSE1
36 internal Path (XmlElement element)
37 #else
38 public Path (XmlElement element) : base ()
39 #endif
41 #if WSE1
42 this.element = element;
43 #else
44 LoadXml (element);
45 #endif
48 #if WSE2
49 public void CheckValid ()
51 if(Actor.Length == 0 || Actor != "http://schemas.xmlsoap.org/soap/actor/next")
53 throw new RoutingFormatException ("Bad Actor value");
56 #endif
58 public XmlElement GetXml (XmlDocument document)
60 if (document == null)
61 throw new ArgumentNullException (
62 Locale.GetText ("Argument is null."));
63 throw new NotImplementedException ();
66 [MonoTODO]
67 public void LoadXml (XmlElement element)
69 if (element == null)
70 throw new ArgumentNullException (
71 Locale.GetText ("Argument is null."));
72 throw new NotImplementedException ();
75 #if WSE1
76 [MonoTODO]
77 public object Clone ()
78 #else
79 public virtual object Clone ()
80 #endif
82 #if WSE1
83 throw new NotImplementedException ();
84 #else
85 Path newPath = new Path ();
87 if(_forward != null) {
88 newPath._forward = _forward.Clone () as ViaCollection;
91 if(_reverse != null) {
92 newPath._reverse = _reverse.Clone () as ViaCollection;
95 newPath._fault = _fault;
97 return newPath;
98 #endif
101 #if !WSE1
102 [Obsolete]
103 public string Action {
104 get { throw new NotSupportedException (); }
105 set { throw new NotSupportedException (); }
107 #else
108 [MonoTODO]
109 public string Action {
110 get { return null; }
111 set { ; }
113 #endif
115 public RoutingFault Fault {
116 get { return _fault; }
117 set { _fault = value; }
120 #if !WSE1
121 [Obsolete]
122 public Uri From {
123 get { throw new InvalidOperationException (); }
124 set { throw new InvalidOperationException (); }
126 #else
127 [MonoTODO]
128 public Uri From {
129 get { return null; }
130 set { ; }
132 #endif
134 public ViaCollection Fwd {
135 get {
136 if(_forward == null) {
137 _forward = new ViaCollection ();
139 return _forward;
143 #if !WSE1
144 [Obsolete("Use SoapContext.MessageId")]
145 public Uri Id {
146 get { throw new InvalidOperationException (); }
148 #else
149 [MonoTODO]
150 public Uri Id {
151 get { return null; }
153 #endif
155 #if !WSE1
156 [Obsolete("Use SoapContext.RelatesTo")]
157 public Uri RelatesTo {
158 get { throw new InvalidOperationException (); }
159 set { throw new InvalidOperationException (); }
161 #else
162 [MonoTODO]
163 public Uri RelatesTo {
164 get { return null; }
165 set { ; }
167 #endif
169 public ViaCollection Rev {
170 get {
171 if(_reverse == null) {
172 _reverse = new ViaCollection ();
174 return _reverse;
176 set { _reverse = value; }
179 #if !WSE1
180 [Obsolete("Use SoapContext.To")]
181 public Uri To {
182 get { throw new InvalidOperationException (); }
184 #else
185 [MonoTODO]
186 public Uri To {
187 get { return null; }
189 #endif