2002-02-24 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlUrlResolver.cs
1 // System.Xml.XmlUrlResolver.cs
2 //
3 // Author: Duncan Mak (duncan@ximian.com)
4 //
5 // (C) Ximian, Inc.
6 //
7
8 using System.Net;
9
10 namespace System.Xml
11 {
12         public class XmlUrlResolver : XmlResolver
13         {
14                 // Field
15                 ICredentials credential;
16                 
17                 // Constructor
18                 public XmlUrlResolver ()
19                         : base ()
20                 {
21                 }
22
23                 // Properties           
24                 public override ICredentials Credentials
25                 {
26                         set { credential = value; }
27                 }
28                 
29                 // Methods
30                 [MonoTODO]
31                 public override object GetEntity (Uri absoluteUri, string role, Type ofObjectToReturn)
32                 {
33                         return null;
34                 }
35
36                 public override Uri ResolveUri (Uri baseUri, string relativeUri)
37                 {
38                         return new Uri (baseUri, relativeUri);
39                 }
40         }       
41 }