On 13/11/2012 22:59, Danny Coward wrote:
> 3) Remove requirement for leading slash on paths (server-side)
>
> e.g. @WebSocketEndpoint("/foo/baa") -> @WebSocketEndpoint("foo/baa")
> and @WebSocketEndpoint("/") -> @WebSocketEndpoint("")
>
> I think we should do this. Removes visual noise for no loss of precision.
I don't like this. Folks are used to seeing the leading '/'. Leaving it
out creates a possible ambiguity. Are these relative or absolute? If
relative, relative to what?
This actually raises another thought. What are these paths relative to?
My expectation is that they are relative to the root of the
ServletContext but that only makes sense when running in a Servlet
container. What about when running in some other environment? Are they
relative to the server root, some environment specific root, something else?
Mark