Files
mono/mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpWebClientProtocol.cs
T
Tim Coleman db02562dea 2002-07-22 Tim Coleman <[email protected]>
* AnyReturnReader.cs:
	* HtmlFormParameterReader.cs :
	* HtmlFormParameterWriter.cs :
	* HttpGetClientProtocol.cs :
	* HttpMethodAttribute.cs :
	* HttpPostClientProtocol.cs :
	* HttpSimpleClientProtocol.cs :
	* HttpWebClientProtocol.cs :
	* LogicalMethodInfo.cs :
	* LogicalMethodTypes.cs :
	* MatchAttribute.cs :
	* MimeFormatter.cs :
	* MimeParameterReader.cs :
	* MimeParameterWriter.cs :
	* MimeReturnReader.cs :
	* NopReturnReader.cs :
	* PatternMatcher.cs :
	* SoapClientMessage.cs :
	* SoapDocumentMethodAttribute.cs :
	* SoapDocumentServiceAttribute.cs :
	* SoapException.cs :
	* SoapExtension.cs :
	* SoapExtensionAttribute.cs :
	* SoapHeader.cs :
	* SoapHeaderAttribute.cs :
	* SoapHeaderCollection.cs :
	* SoapHeaderDirection.cs :
	* SoapHttpClientProtocol.cs :
	* SoapMessage.cs :
	* SoapMessageStage.cs :
	* SoapParameterStyle.cs :
	* SoapRpcMethodAttribute.cs :
	* SoapRpcServiceAttribute.cs :
	* SoapServerMessage.cs :
	* SoapServiceRoutingStyle.cs :
	* SoapUnknownHeader.cs :
	* TextReturnReader.cs :
	* UrlEncodedParameterWriter.cs :
	* UrlParameterReader.cs :
	* UrlParameterWriter.cs :
	* ValueCollectionParameterReader.cs :
	* WebClientAsyncResult.cs :
	* WebClientProtocol.cs :
	* WebServiceHandlerFactory.cs :
	* XmlReturnReader.cs :
		Add missing methods and attributes to make as few missing
		things as possible in this namespace.  This is from the
		project status page.

svn path=/trunk/mcs/; revision=6034
2002-07-22 22:52:09 +00:00

102 lines
2.6 KiB
C#

//
// System.Web.Services.Protocols.HttpWebClientProtocol.cs
//
// Author:
// Tim Coleman ([email protected])
//
// Copyright (C) Tim Coleman, 2002
//
using System.ComponentModel;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Web.Services;
namespace System.Web.Services.Protocols {
public abstract class HttpWebClientProtocol : WebClientProtocol {
#region Fields
bool allowAutoRedirect;
X509CertificateCollection clientCertificates;
CookieContainer cookieContainer;
IWebProxy proxy;
string userAgent;
#endregion
#region Constructors
protected HttpWebClientProtocol ()
{
allowAutoRedirect = false;
clientCertificates = new X509CertificateCollection ();
cookieContainer = null;
proxy = null; // FIXME
userAgent = "Mono Web Services Client Protocol 1.0.1234.0"; // FIXME
}
#endregion // Constructors
#region Properties
[DefaultValue (false)]
[WebServicesDescription ("Enable automatic handling of server redirects.")]
public bool AllowAutoRedirect {
get { return allowAutoRedirect; }
set { allowAutoRedirect = value; }
}
[Browsable (false)]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[WebServicesDescription ("The client certificates that will be sent to the server, if the server requests them.")]
public X509CertificateCollection ClientCertificates {
get { return clientCertificates; }
}
[DefaultValue (null)]
[WebServicesDescription ("A container for all cookies received from servers in the current session.")]
public CookieContainer CookieContainer {
get { return cookieContainer; }
set { cookieContainer = value; }
}
[Browsable (false)]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
public IWebProxy Proxy {
get { return proxy; }
set { proxy = value; }
}
[WebServicesDescription ("Sets the user agent http header for the request.")]
public string UserAgent {
get { return userAgent; }
set { userAgent = value; }
}
#endregion // Properties
#region Methods
[MonoTODO]
protected override WebRequest GetWebRequest (Uri uri)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected override WebResponse GetWebResponse (WebRequest request)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected override WebResponse GetWebResponse (WebRequest request, IAsyncResult result)
{
throw new NotImplementedException ();
}
#endregion // Methods
}
}