IWebDAVMethodHandler.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections.Generic;
  2. using WebDAVSharp.Server.Adapters;
  3. using WebDAVSharp.Server.Stores;
  4. namespace WebDAVSharp.Server.MethodHandlers
  5. {
  6. /// <summary>
  7. /// This interface must be implemented by a class that will respond
  8. /// to requests from a client by handling specific HTTP methods.
  9. /// </summary>
  10. public interface IWebDavMethodHandler
  11. {
  12. /// <summary>
  13. /// Gets the collection of the names of the HTTP methods handled by this instance.
  14. /// </summary>
  15. /// <value>
  16. /// The names.
  17. /// </value>
  18. IEnumerable<string> Names { get; }
  19. /// <summary>
  20. /// Processes the request.
  21. /// </summary>
  22. /// <param name="server">The <see cref="WebDavServer" /> through which the request came in from the client.</param>
  23. /// <param name="context">
  24. /// The
  25. /// <see cref="IHttpListenerContext" /> object containing both the request and response
  26. /// objects to use.
  27. /// </param>
  28. /// <param name="store">The <see cref="IWebDavStore" /> that the <see cref="WebDavServer" /> is hosting.</param>
  29. void ProcessRequest(WebDavServer server, IHttpListenerContext context, IWebDavStore store);
  30. }
  31. }