Made MessagingUtilities.CreateQueryString exception more useful.
[dotnetoauth.git] / src / DotNetOpenAuth / Messaging / IDirectedProtocolMessage.cs
blob4342d45d30bce530321a5828f40a4b9ef7060972
1 //-----------------------------------------------------------------------
2 // <copyright file="IDirectedProtocolMessage.cs" company="Andrew Arnott">
3 // Copyright (c) Andrew Arnott. All rights reserved.
4 // </copyright>
5 //-----------------------------------------------------------------------
7 namespace DotNetOpenAuth.Messaging {
8 using System;
10 /// <summary>
11 /// Implemented by messages that have explicit recipients
12 /// (direct requests and all indirect messages).
13 /// </summary>
14 public interface IDirectedProtocolMessage : IProtocolMessage {
15 /// <summary>
16 /// Gets the preferred method of transport for the message.
17 /// </summary>
18 /// <remarks>
19 /// For indirect messages this will likely be GET+POST, which both can be simulated in the user agent:
20 /// the GET with a simple 301 Redirect, and the POST with an HTML form in the response with javascript
21 /// to automate submission.
22 /// </remarks>
23 HttpDeliveryMethods HttpMethods { get; }
25 /// <summary>
26 /// Gets the URL of the intended receiver of this message.
27 /// </summary>
28 Uri Recipient { get; }