UrlParameterWriter.cs 717 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // System.Web.Services.Protocols.UrlParameterWriter.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. // Lluis Sanchez Gual ([email protected])
  7. //
  8. // Copyright (C) Tim Coleman, 2002
  9. //
  10. using System.Web.Services;
  11. using System.IO;
  12. namespace System.Web.Services.Protocols {
  13. public class UrlParameterWriter : UrlEncodedParameterWriter {
  14. #region Constructors
  15. public UrlParameterWriter ()
  16. {
  17. }
  18. #endregion // Constructors
  19. #region Methods
  20. public override string GetRequestUrl (string url, object[] parameters)
  21. {
  22. StringWriter sw = new StringWriter ();
  23. Encode (sw, parameters);
  24. return url + "?" + sw.ToString ();
  25. }
  26. #endregion // Methods
  27. }
  28. }