Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Message Urn

phatboyg edited this page Feb 18, 2011 · 3 revisions

The body type of a message in Stact is identified using a URN.

The base structure of the URN includes:

urn:(message|request|response):namespace:type[:assembly]

Segments

urn:

The prefix that denotes the URI as a URN.

(message|request|response)

The first content segment of the URN, this specifies the type of message represented.

message

A message is any naked class or a class wrapped in a Message header interface.

request

A request is a message body wrapped by a Request header interface, and includes information on how to respond to the request.

response

A response is a message body wrapped by a Response header interface, and includes information to identify the original request to which this is a response.

namespace

The namespace defines the scope of the message, and can refer to a language namespace, a module namespace, or whatever.

type

The type of the message, typically the class name of the message.

[:assembly]

.NET If the assembly name is not the same as the namespace, the name of the assembly is included here.

Examples

namespace Stact.Messages
{
    public class Welcome

If this was defined in the Stact assembly, the following URN would be created:

urn:message:Stact.Messages:Welcome:Stact

Clone this wiki locally